PEAR2_Autoload is the standard method of class loading for development and low-volume web sites using PEAR2 packages.

To use:

require '/path/to/PEAR2/Autoload.php';
// Now use class names from installed PEAR2 packages at will

// You can also inclue other PEAR2 registries
// require '/other/pear2/repo/PEAR2/Autoload.php';
// or manually
// PEAR2\Autoload::initialize('/other/pear2/repo');

Release Notes - 0.2.4

  • Add optional dynamically-generated class map so full file paths can be used when loading class files.

  • Added a few test cases, along with non-Pyrus .phpt runner to keep us from trying to load PEAR2\Autoload twice!

  • Removed PEAR2\ prefix requirement for loaded classes. Now psr-0 compliant.


$ php pyrus.phar install PEAR2_Autoload-0.2.4
Status: 0.2.4 alpha, released on August 8, 2011
License: New BSD License
Maintained: yes

Browse Files

13 files in 13 directories.

Dependencies for PEAR2_Autoload

  • PHP ≥ 5.3.0