ehough / templating
Fork of Symfony's Templating component compatible with PHP 5.2+
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=5.2.9
Requires (Dev)
- phpunit/phpunit: 3.7.*
- psr/log: ~1.0
Suggests
- psr/log: For using debug logging in loaders
This package is not auto-updated.
Last update: 2019-01-29 18:13:35 UTC
README
This library is no longer supported or maintained as PHP 5.2 usage levels have finally dropped below 10%
Fork of Symfony's Templating component compatible with PHP 5.2+.
Motivation
Symfony's Templating component is a fantastic templating library, but it's only compatible with PHP 5.3+. While 97% of PHP servers run PHP 5.2 or higher, 26% of all servers are still running PHP 5.2 or lower (source). It would be a shame to exempt this library from a quarter of the world's servers just because of a few version incompatibilities.
Differences from Symfony's Templating component
The primary difference is naming conventions of the Symfony classes.
Instead of the \Symfony\Component\Templating
namespace (and sub-namespaces), prefix the Symfony class names
with ehough_templating
and follow the PEAR naming convention
An examples of class naming conversion:
\Symfony\Component\Templating\EngineInterface -----> ehough_templating_EngineInterface
\Symfony\Component\Templating\Storage\FileStorage -----> ehough_templating_storage_FileStorage
Releases and Versioning
Releases are synchronized with the upstream Symfony repository. e.g. ehough/templating v2.3.1
has merged the code
from Symfony/Templating v2.3.1
.