jamm/autoload
Composer 安装命令:
composer require jamm/autoload
包简介
Class to organize autoloading by PHP naming conventions and PSR-0 standard
README 文档
README
Class to organize autoloading by PHP naming conventions and PSR-0 standard:
- 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
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-12-17