In VS.Php 2.5 we extended the support for class autoloader. The idea is that any time you reference a class, VS.Php will be able to find the file where the class is defined. In the project settings you can specify one or more class name templates. These templates are used to turn a class name into a file name. By default, VS.Php uses %s.php and class.%s.php to map a class into a file name. Replace the %s with the class name. You can define as many as you want in the project properties. The following screenshot shows the setting in the project properties.

Here are other capabilities of this feature:

  • Classes are search through the entire project
  • Classes are auto loaded when referenced in a constructor, phpdoc comments, extends keyword or static method call.

You can evaluate this feature and many other 2.5 features here:

http://www.jcxsoftware.com/jcx/vsphp/beta