ehough / stash
Fork of tedious/Stash compatible with PHP 5.2+
Installs: 782
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 102
Open Issues: 0
Requires
- php: >=5.2.0
Requires (Dev)
- fabpot/php-cs-fixer: ^1.9
- phpunit/phpunit: 4.7.*
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2017-01-12 06:18:33 UTC
README
Fork of tedious/Stash compatible with PHP 5.2+.
Motivation
tedious/Stash
is a fantastic caching library, but it's only compatible with PHP 5.4+. While 99% of PHP servers run PHP 5.2 or higher,
48% of all servers are still running PHP 5.3 or lower (source).
It would be a shame to exempt this library from nearly half of the world's servers just because of a few version incompatibilities.
Once PHP 5.4+ adoption levels break 90%, this library will be retired.
Differences from tedious/Stash
The primary difference is naming conventions of the tedious/Stash
classes.
Instead of the \Stash
namespace (and sub-namespaces), prefix the tedious/Stash
class names
with ehough_stash
and follow the PEAR naming convention
A few examples of class naming conversions:
\Stash\Pool -----> ehough_stash_Pool
\Stash\Driver\Memcache -----> ehough_stash_driver_Memcache
Usage
Visit www.stashphp.com for the current documentation.
Releases and Versioning
Releases are synchronized with the upstream tedivm repository. e.g. ehough/stash v0.10.5
has merged the code
from tedious/Stash v0.10.5
.