Login   Register  
PHP Classes
elePHPant
Icontem

PHP Namespace Autoload : Autoload classes with namespaces from directories

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Jan Altensen
Name: Jan Altensen <e-mail contact>
Packages: 8 Browse all classes by Jan Altensen Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 20
All time rank: 1662106 in Germany Germany
Week rank: 187 Up7 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can autoload classes with namespaces from directories.

It can register a class autoload function that takes the class name eventually with a namespace prefix, splits the namespace parts and assembles it to form a class path that maps its namespace part into directories.

Then it checks if a script file exists in the assembled path with the suffix .class.php. If it exists, the class script is loaded.

  Classes of Jan Altensen  >  PHP Namespace Autoload  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Namespace Autoload
Base name: namespace-autoloader
Description: Autoload classes with namespaces from directories
Version: 1
PHP version: 5.3
License: GNU Lesser General Public License (LGPL)
All time users: 235 users
All time rank: 6862
Week users: 2 users
Week rank: 1141 Up
 
  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


  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
Files folder imageexample (1 file, 1 directory)
Plain text file autoload.class.php Class autoloader class

  Files  /  Files folder image example  
File Role Description
Files folder imagetest (1 file)
  Plain text file index.php Example example

  Files  /  example  /  Files folder image test  
File Role Description
  Plain text file bla.class.php Aux. example

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