Map-based autoloader across php and phar resources

⌈⌋ ⎇ branch:  Canonic Autoloader


Artifact [5beaecce6d]

Artifact 5beaecce6d6cce1c79c5cf26c0c2e88953efa3d2:

Wiki page [Canonic Autoloader] by mario 2014-02-13 02:41:02.
D 2014-02-13T02:41:02.147
L Canonic\sAutoloader
N text/x-markdown
P c7546313269463e710a1ff5b4bddfe0d22cdab28
U mario
W 1290
<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)
      *  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](https://wiki.php.net/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 6c354dee41ad61ea664c950f95addb85