PHP Classes

Namespace-aware autoloader: Load classes automatically supporting namespaces

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 495 All time: 5,454 This week: 1,125Up
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: 40
All time rank: 48114 in The Netherlands The Netherlands
Week rank: 452 Up16 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:495All time:5,454
 This week:0This week:1,125Up