2017 © Pedro Peláez
 

library autoload

Class to organize autoloading by PHP naming conventions and PSR-0 standard

image

jamm/autoload

Class to organize autoloading by PHP naming conventions and PSR-0 standard

  • Monday, July 22, 2013
  • by OZ
  • Repository
  • 1 Watchers
  • 3 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Autoload

Class to organize autoloading by PHP naming conventions and PSR-0 standard:, (*1)

  • A fully-qualified namespace and class must have the following structure \<Vendor Name>\(<Namespace>\)*<Class Name>
  • Each namespace must have a top-level namespace ("Vendor Name").
  • Each namespace can have as many sub-namespaces as it wishes.
  • Each namespace separator is converted to a DIRECTORY_SEPARATOR when loading from the file system.
  • Each "_" character in the CLASS NAME is converted to a DIRECTORY_SEPARATOR. The "_" character has no special meaning in the namespace.
  • The fully-qualified namespace and class is suffixed with ".php" when loading from the file system.
  • Alphabetic characters in vendor names, namespaces, and class names may be of any combination of lower case and upper case.

How to use

  • Classes of all packages (libraries), placed in the "vendors" folder, will be autoloaded automatically (in first use);
  • You can map namespace of package, placed in any folder: use register_namespace_dir() method;
  • You can map any class also: use register_class() method;

License: MIT, (*2)

The Versions

22/07 2013

dev-master

9999999-dev

Class to organize autoloading by PHP naming conventions and PSR-0 standard

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

autoloader autoload psr-0 classmap