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

To use:

<?php
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.

Categories

Installation

$ php pyrus.phar install PEAR2_Autoload
Status: 0.2.4 alpha, released on August 8, 2011
License: New BSD License
Documentation: GitHub Wiki
Issues: 1 open, 4 closed
Maintainers:

Release History

0.2.4 alpha August 8, 2011
0.2.3 alpha January 8, 2011
0.2.2 alpha September 21, 2010
0.2.1 alpha June 28, 2010
0.2.0 alpha May 23, 2010
0.1.1 alpha March 16, 2010
0.1.0 alpha December 13, 2009

Browse Files

13 files in 13 directories.

Dependencies for PEAR2_Autoload

  • PHP ≥ 5.3.0