Update of "Canonic Autoloader"
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | 36365c3e261b4102b18c8211253f2328e80d7063 |
---|---|
Page Name: | Canonic Autoloader |
Date: | 2014-03-20 17:46:26 |
Original User: | mario |
Mimetype: | text/x-markdown |
Parent: | 8d9fc3cde5c7a14fc0e3ca9813e9ad94f4294113 (diff) |
Next | f1f2fb989cb01c1b4a2a0ea18778da93d894ff2c |
Content
Features
shared.phar is a streets ahead PHP autoloader.
- Self-contained in a single compressed Phar ⎘ (but may also be split up).
- Can be updated easily by invoking it from the command line, or implicitly.
- Based on a class map, interprets identifiers case-insensitively (as PHP does).
- Prepares rfc:function_autoloading userland support.
- Phar collections become first class citizens, as both plain
*.php
scripts andphar://*
includes are tokenized 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 classpath.
Also it's public domain.
Usage
It can be utilized easily with:
include_once("shared.phar");
And updated manualy y on the command line:
php ./shared.phar
Or implicitly on development setups by declaring an AUTOLOADER_UPDATE environment variable.
Project
- Development State
- 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/