crowdstar / template
This package is abandoned and no longer maintained.
No replacement package was suggested.
A wrapper for template engines.
1.0.0
2020-10-07 17:48 UTC
Requires
- php: >=7.4
Requires (Dev)
- mustache/mustache: ~2.11
- phpunit/phpunit: ~9.0
Suggests
- mustache/mustache: Use the Mustache template engine to render templates.
This package is auto-updated.
Last update: 2024-07-08 02:22:03 UTC
README
Summary
A wrapper for template engines. The purpose of this library is to make it easier to switch between different template engines.
Installation
composer require crowdstar/template
Sample Usage
<?php use CrowdStar\Template\Template; use CrowdStar\Template\TemplateEngine\Mustache; (new Template(new Mustache()))->render('Hello {{planet}}', ['planet' => 'World!']); // "Hello World!" ?>