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: 3faa122ccd6036bc588f86830aaf5041ef62e1d9
Page Name:Canonic Autoloader
Date: 2014-03-19 00:08:31
Original User: mario
Mimetype:text/x-markdown
Parent: 30317a4152bd4033cb1b38473ed68a83887d0688 (diff)
Next fbe27531c34920ca9a6931ef5fe0a8555aacedcc
Content

Features

shared.phar is a streets ahead PHP autoloader.

  • Self-contained in a single compressed phar
  • Based on a class map
  • 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.

Also 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.

Project

Development
shared.phar is still in an early development stage.
Releases
Releases will be announced on http://freecode.com/projects/sharedphar
Packages
Debian packages are available via http://apt.include-once.org/