D 2014-02-13T05:06:14.979 L Canonic\sAutoloader N text/x-markdown P 5beaecce6d6cce1c79c5cf26c0c2e88953efa3d2 U mario W 1274

Features

[`shared.phar`](finfo?name=shared.phar) is a streets ahead PHP autoloader. * Self-contained in a single compressed [phar](https://php.net/phar) * Can be [updated easily](wiki/update) by invoking it from the command line * The phar may also be [split up](wiki/split) * Based on a class map * Interprets identifiers case-insensitively (as PHP does) * Prepares [rfc:function_autoloading](wiki/rfc:function_autoloading) userland support * ***Phar collections** become first class citizens* * *Tokenizes* plain `*.php` and `phar://*` includes for identifier declarations * Indifferent to PSR-0/4 constraints, works atop any legacy or custom directory scheme * Is meant for `/usr/share/php` handling * But can be used project-locally just as well * And for deployment is just copied along with the class structure. 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 42a765b696dff1e42006b3c34615e3c2