Map-based autoloader across php and phar resources

⌈⌋ ⎇ branch:  Canonic Autoloader


Artifact [43ee44b9c1]

Artifact 43ee44b9c1b73f5c1947c55b7ea8ea2fb4d84841:

Wiki page [Canonic Autoloader] by mario 2014-09-08 13:48:11.
D 2014-09-08T13:48:11.647
L Canonic\sAutoloader
N text/x-markdown
P 222424bf5a135c78b5064672905a1e1dc57b56be
U mario
W 1746
<img src=logo align=right style="margin:10pt;">

<h3>Features</h3>

<kbd>[shared.phar](finfo?name=shared.phar)</kbd> is a streets ahead PHP autoloader.

  *  Self-contained in a single compressed [Phar <span class=glyph>⎘</span>](https://php.net/phar).
  *  Can be [updated easily](wiki/update) from the command line or [implicitly](wiki/AUTOLOADER_UPDATE).
  *  Is class-map based and handles identifiers PHP-compliant.
  *  ***Phar collections** become first class citizens*, as both plain `*.php` scripts and `phar://*` packages are scanned for identifier declarations.
  *  Indifferent to [PSR-0/4 constraints](wiki/FeatureComparison), works atop any legacy or custom directory scheme.
  *  Prepares [rfc:function_autoloading](wiki/rfc:function_autoloading) userland support.
  *  Can be used project-locally and for `/usr/share/php` handling.
  * And for deployment is just copied along with the classpath.
       

Also it's placed into the Public Domain.


### Usage

It can be [utilized](wiki/include_once) easily with:

     include_once("shared.phar");

And [updated manually](wiki/update) on the command line:

     php ./shared.phar

Or <em>implicitly</em> on development setups by pre-declaring an [environment variable](wiki/AUTOLOADER_UPDATE).

     SetEnv AUTOLOADER_UPDATE 1

### Project

<dl>
  <dt>Development State</dt>
  <dd>early development stage / <b>experimental</b></dd>
  <dt>Releases</dt>
  <dd>Releases will be announced on <a href="http://freshcode.club/projects/sharedphar">http://freshcode.club/projects/sharedphar</a></dd>
  <dt>Packages</dt>
  <dd>Debian packages are available via <a href="http://apt.include-once.org/">http://apt.include-once.org/</a></dd>
</dl>


Z 0a85778e248f18952e095d01a85b5c77