Map-based autoloader across php and phar resources

โŒˆโŒ‹ โŽ‡ branch:  Canonic Autoloader

Build in trigger script for DPKG and RPM (untested).
mario authored 2069 days ago last checkin 18e74838b
๐Ÿ“„ LICENSE Add minimum documentation (changelog, license, readme, manpage)โ€นโ€บ 2205 days ago
๐Ÿ“„ NEWS Prepare 0.3.4 step release.โ€นโ€บ 2069 days ago
๐Ÿ“„ README Update notes about pharmap.php and addPhar(). (Section about recommenโ€นโ€บ 2069 days ago
๐Ÿ“„ manpage.1 Typos in manpage.โ€นโ€บ 2069 days ago
๐Ÿ“„ mk Build in trigger script for DPKG and RPM (untested).โ€นโ€บ 2069 days ago
๐Ÿ“„ pharmap.php Tool to regenerate .phar-internal class/func `map`, which is compatibโ€นโ€บ 2069 days ago
๐Ÿ“„ shared.phar Test build of 0.3.4โ€นโ€บ 2069 days ago
๐Ÿ“„ stub.php Build in trigger script for DPKG and RPM (untested).โ€นโ€บ 2069 days ago
๐Ÿ“„ update.php Skip hidden .dot directories (as in .git/* and .svn/*)โ€นโ€บ 2212 days ago

Canonic Autoloader


shared.phar is a streets ahead PHP autoloader.

  • Self-contained in a single compressed Phar โŽ˜.
  • Can be updated easily from the command line or implicitly.
  • 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, works atop any legacy or custom directory scheme.
  • Prepares 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.


It can be utilized easily with:


And updated manually on the command line:

 php ./shared.phar

Or implicitly on development setups by pre-declaring an environment variable.



Development State
early development stage / experimental
Releases will be announced on
Debian packages are available via