Map-based autoloader across php and phar resources

⌈⌋ branch:  Canonic Autoloader


Update of "Canonic Autoloader"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: c7546313269463e710a1ff5b4bddfe0d22cdab28
Page Name:Canonic Autoloader
Date: 2014-02-12 02:25:18
Original User: mario
Mimetype:text/x-markdown
Parent: 4f344ff69af864e88fe914950f25ad5b76f8904d
Content

Features

shared.phar is a streets ahead PHP autoloader.

  • Self-contained in a single compressed phar
  • Based on a class map
  • Can be updated easily by invoking it from the command line
  • Phar collections become first class citizens
  • Interprets identifiers case-insensitively (as PHP does)
  • Tokenizes plain *.php and phar://* includes for identifier declarations
  • Is meant for /usr/share/php handling, but can be used project-locally
  • Prepares rfc:function_autoloading userland support
  • Indifferent to PSR-0/4 constraints, works atop any legacy or custom directory scheme
  • The phar may also be split up

And it's public domain.

Usage

It can be utilized easily with:

 include_once("shared.phar");

And updated manually on the command line:

 php ./shared.phar

Or implicitly on development setups by declaring an AUTOLOADER_UPDATE environment variable.