Login   Register  
PHP Classes
elePHPant
Icontem

Namespace-aware autoloader: Load classes automatically supporting namespaces

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 479 All time: 5,384 This week: 1,512Up
Version License PHP version Categories  
ns-autoloader 1.0GNU General Public Lice...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
Name: Richard Keizer <contact>
Classes: 7 packages by
Country: The Netherlands The Netherlands
Age: 39
All time rank: 48313 in The Netherlands The Netherlands
Week rank: 744 Down19 in The Netherlands The Netherlands Down
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:479All time:5,384
 This week:0This week:1,512Up