PHP Classes

Namespace-aware autoloader: Load classes automatically supporting namespaces

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 509 This week: 1All time: 5,769 This week: 560Up
Version License PHP version Categories
ns-autoloader 1.0GNU General Publi...5.3PHP 5, Language
Description 

Author

This package can load classes automatically supporting namespaces.

It can scan a given directory recursively to find files ending in .php. The files are parsed to extract the class names as well their namespaces.

The scanned class files are stored in a cache files to avoid subsequent scanning overhead.

Innovation Award
PHP Programming Innovation award nominee
September 2011
Number 9
PHP now started supporting namespaces in version 5.3. This means that classes may have their names prefixed by the namespace name.

This class implements an automatic class file loader that takes in consideration the namespace used to load the class.

It can scan class files in given directories and identify the namespace that may be included in the class names, so the class matching takes in consideration the namespace to load the correct class.


Manuel Lemos
Picture of Richard Keizer
  Performance   Level  
Name: Richard Keizer <contact>
Classes: 7 packages by
Country: The Netherlands The Netherlands
Age: 49
All time rank: 48313 in The Netherlands The Netherlands
Week rank: 109 Up2 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file autoloader.php Class the class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:509
This week:1
All time:5,769
This week:560Up