Artifact
c7546313269463e710a1ff5b4bddfe0d22cdab28:
Wiki page
[Canonic Autoloader] by
mario
2014-02-12 02:25:18.
D 2014-02-12T02:25:18.668
L Canonic\sAutoloader
N text/x-markdown
P 4f344ff69af864e88fe914950f25ad5b76f8904d
U mario
W 1151
<h3>Features</h3>
[`shared.phar`](finfo?name=shared.phar) is a streets ahead PHP autoloader.
* Self-contained in a single compressed [phar](https://php.net/phar)
* Based on a class map
* Can be [updated easily](wiki/update) by invoking it from the command line
* ***Phar collections** become first class citizens*
* Interprets identifiers case-insensitively (as PHP does)
* *Tokenizes* plain `*.php` and `phar://*` includes for identifier declarations
* Is meant for `/usr/share/php` handling, but can be used project-locally
* Prepares [rfc:function_autoloading](https://wiki.php.net/rfc/function_autoloading) userland support
* Indifferent to PSR-0/4 constraints, works atop *any* legacy or custom directory scheme
* The phar may also be [split up](wiki/split)
And it's public domain.
### Usage
It can be [utilized](wiki/include_once) easily with:
include_once("shared.phar");
And [updated](wiki/update) manually on the command line:
php ./shared.phar
Or implicitly on development setups by declaring an [`AUTOLOADER_UPDATE`](wiki/AUTOLOADER_UPDATE) environment variable.
Z 0dddb64c1e3b558af0a901d0076a27e5