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: d6e57d938d3afdd3ff9468fe3e03e075ada63e99
Page Name:Canonic Autoloader
Date: 2014-09-03 17:11:43
Original User: mario
Mimetype:text/x-markdown
Parent: 3f1dd97eb516d79c6d39efb5befb323135bcf876 (diff)
Next cfe044661d9208419bf3a07cfca6fb991c8a03b6
Content

Features

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 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 pre-declaring an environment variable.

 SetEnv AUTOLOADER_UPDATE 1

Project

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