av / bonefish-autoloader
This Project maintains the Bonefish PSR-4 Autoloader
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 617
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
pkg:composer/av/bonefish-autoloader
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2023-10-23 22:21:22 UTC
README
Bonefish-Autoloader is a standard PSR-4 Autoloader
Features
- Autoload classes with PSR-4 standard
Installation
Please use Composer to install this package.
$ composer require av/bonefish-autoloader:dev-master
Usage
Create a new autoloader instance and use register()
$autoloader = new \Bonefish\Autoloader\Autoloader(); $autoloader->register();
Now you can add Namespaces like this
// Hello\World\Controller will now search for src/Controller.php $autoloader->addNamespace('Hello\\World','src');