Innovation Award
 January 2007
Number 8 |
PHP 5 autoload support can simplify the loading of the classes that an application uses. However, if the application needs to load classes from multiple directories, the autoload function can become very complicated.
This package offers a solution that addresses that problem. It creates an index of all classes available in multiple directories. When a class is loaded, it just performs simple index lookup to determine the path of each class file.
Manuel Lemos |
This class can be used to locate and index classes to be auto-loaded when their objects are instantiated.
It searches for PHP classes in files and generates an index file in the INI format with the paths of all the classes that it found, so next time a class needs to be loaded it just needs to look in the generated INI file.
It also provides an auto-load function that looks in the generated INI file entries for the path of the class file to be loaded.
| There are not enough user ratings to display for this class. |
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| File |
Role |
Description |
example.php |
Example |
Example of usage |
classfinder.php |
Class |
ClassFinder locates classes in a PHP file |
tracker.php |
Class |
Main class for managing scans and autoloading |