Map-based autoloader across php and phar resources

⌈⌋ ⎇ branch:  Canonic Autoloader


Artifact [e8c96d0e13]

Artifact e8c96d0e13732434dfe2a342cbcd18b3af422ffc:

Wiki page [include_once] by mario 2014-02-12 02:12:43.
D 2014-02-12T02:12:43.882
L include_once
N text/x-markdown
U mario
W 542
<h3>Global autoloader</h3>

If you are using the global autoloader for `/usr/share/php` then you can often just do:

    include_once("shared.phar");

Your include_path usually lists it already.

### Per-project autoloader

You can just copy the `shared.phar` from there and install it into a project directory, optionally rename it, then [update](wiki/update) it once. 

    include_once("./vendor/shared.phar");

You may wish to override the automatic [AUTOLOADER_UPDATE](wiki/AUTOLOADER_UPDATE) then for development setups.

Z b290bcbb7ced9cf11cb60332d5c0dfe2