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

  Author Author  
Picture of Richard Keizer
Name: Richard Keizer <e-mail contact>
Packages: 7 Browse all classes by Richard Keizer Browse all classes by
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 39
All time rank: 48713 in The Netherlands The Netherlands
Week rank: 254 Up9 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 5x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Richard Keizer  >  Namespace-aware autoloader  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Namespace-aware autoloader
Base name: ns-autoloader
Description: Load classes automatically supporting namespaces
Version: 1.0
PHP version: 5.3
License: GNU General Public License (GPL)
All time users: 475 users
All time rank: 5324
Week users: 0 users
Week rank: 1942 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes


  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

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file autoloader.php Class the class

Download Download all files: ns-autoloader.tar.gz ns-autoloader.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.