Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frqnck/apix-autoloader

Light PSR-* compliant autoloader for PHP5.3+ namespaces and older PEAR-style classes.
https://github.com/frqnck/apix-autoloader

Last synced: 4 months ago
JSON representation

Light PSR-* compliant autoloader for PHP5.3+ namespaces and older PEAR-style classes.

Awesome Lists containing this project

README

        

APIx Autoloader, PSR-0 for PHP5.3+
==================================

Apix Autoloader is a light [PSR-0][] compliant autoloader which can autoload both PHP5.3 namespaces and older PEAR-style classes.

Basic usage
--------------

* At its most basic, it will autoload PSR-0 complient class names in the current include-path:

```php
prepend('path/my/libs')
->prepend('path/vendors')
->append('some/other/path');

$loader->register(true); // True to take precedence on registered autoloaders.
// False (the default) to follow the stack order.
```

Installation
------------

* If you are creating a component that relies on Apix Autoloader locally:

* either update your **`composer.json`** file:

```json
{
"require": {
"apix/autoloader": "1.0.*"
}
}
```

* or update your **`package.xml`** file as follow:

```xml



apix_autoloader
pear.ouarz.net
1.0.0
1.999.999



```
* For a system-wide installation, use PEAR as follow:

```
sudo pear channel-discover pear.ouarz.net
sudo pear install --alldeps ouarz/apix_autoloader
```
Checkout [pear.ouarz.net](http://pear.ouarz.net) for more details.

License
-------
Apix Autoloader is licensed under the New BSD license -- see the `LICENSE.txt` for the full license details.

[PSR-0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md