av/bonefish-autoloader

There is no license information available for the latest version (v1.0) of this package.

This Project maintains the Bonefish PSR-4 Autoloader

v1.0 2014-09-27 13:01 UTC

This package is not auto-updated.

Last update: 2023-10-23 22:21:22 UTC


README

Scrutinizer Code Quality Code Coverage Build Status

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');