Enhanced PSR 4 Autoloader: Autoloader that supports PSR 4 with enhancements

Recommend this page to a friend!
  Info   View files Example   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 137 All time: 9,014 This week: 339Up
Version License PHP version Categories
psr4enhan 1.0.0GNU General Publi...5.3.0PHP 5, Language
Description Author

This class is an autoloader that supports PSR 4 with enhancements.

It can register namespaces and assign them to specific directories according to PSR 4 specification.

It can also register an entire namespace and sub-namespaces to a given directory.

A given namespace may also be looked into multiple directories.

The class can also register specific class names for specific files with names totally different to the class names.

Multiple classes may be loaded from the same file.

Innovation Award
PHP Programming Innovation award winner
August 2015
Winner
PSR 4 is a PHP standard recommendation to autoload classes of given namespaces from specific directories.

This class implements PSR 4 autoloading support.

It also supports additional autoloading possibilities like assigning sub-namespaces to given directories, so the it continues to scan sub-directories to find the actual class files, autoloading classes from a namespace from a multiple directories, autoload specific classes from a given path, and autoload multiple classes from the same path.

Manuel Lemos
Picture of Andrei Alexandru
  Performance   Level  
Name: Andrei Alexandru <contact>
Classes: 4 packages by
Country: Spain Spain
Age: 34
All time rank: 247963 in Spain Spain
Week rank: 445 Up10 in Spain Spain Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageorg (2 files, 1 directory)
Files folder imageorgtests (1 directory)
Files folder imageotherClasses (1 file)
Accessible without login Plain text file Autoloader.php Class Main class
Accessible without login Plain text file index.php Example Examples

  Files folder image Files  /  org  
File Role Description
Files folder imageexample (2 directories)
  Accessible without login Plain text file AbstractController.php Class Examples
  Accessible without login Plain text file NoNamespaceClass.php Class Examples

  Files folder image Files  /  org  /  example  
File Role Description
Files folder imagecontrollers (1 file)
Files folder imagelibraries (1 file)

  Files folder image Files  /  org  /  example  /  controllers  
File Role Description
  Accessible without login Plain text file HomeController.php Class Examples

  Files folder image Files  /  org  /  example  /  libraries  
File Role Description
  Accessible without login Plain text file DatabaseLibrary.php Class Examples

  Files folder image Files  /  orgtests  
File Role Description
Files folder imageexample (2 directories)

  Files folder image Files  /  orgtests  /  example  
File Role Description
Files folder imagecontrollers (1 file)
Files folder imagelibraries (1 file)

  Files folder image Files  /  orgtests  /  example  /  controllers  
File Role Description
  Accessible without login Plain text file HomeControllerTest.php Class Examples

  Files folder image Files  /  orgtests  /  example  /  libraries  
File Role Description
  Accessible without login Plain text file DatabaseLibraryTest.php Class Examples

  Files folder image Files  /  otherClasses  
File Role Description
  Accessible without login Plain text file DiferentFileNameAndClassName.php Example Examples

 Version Control Unique User Downloads Download Rankings  
 0%
Total:137
This week:0
All time:9,014
This week:339Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:410
  

For more information send a message to info at phpclasses dot org.