PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2011-08-26 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 504 All time: 5,517 This week: 872Up
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
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:504
This week:0
All time:5,517
This week:872Up