rush / view-strategies
This package is abandoned and no longer maintained.
No replacement package was suggested.
Multi template engine driver for PHP
0.9
2016-11-11 10:36 UTC
Requires
- php: ^5.4
Requires (Dev)
- dwoo/dwoo: 1.3.0
- fenom/fenom: ^2.8
- foil/foil: ^0.6.4
- latte/latte: ^2.3
- league/plates: ^3.1
- phpmd/phpmd: 2.2.2
- phpunit/phpunit: 4.8.*
- pug-php/pug: ^2.4
- smarty/smarty: ^3.1
- squizlabs/php_codesniffer: 2.*
- twig/twig: ^1.24
Suggests
- dwoo/dwoo: see https://github.com/dwoo-project/dwoo
- fenom/fenom: see https://github.com/fenom-template/fenom
- foil/foil: see https://github.com/FoilPHP/Foil
- kylekatarnls/jade-php: see https://github.com/kylekatarnls/jade-php
- latte/latte: see https://github.com/nette/latte
- league/plates: see https://github.com/thephpleague/plates
- smarty/smarty: see https://github.com/smarty-php/smarty
- twig/twig: see https://github.com/twigphp/Twig
This package is not auto-updated.
Last update: 2020-01-24 16:43:46 UTC
README
[[DEPRECATED]] This repository is no longer maintained. We'll delete this repository & unpublish package at 2017/12/31.
php-view-strategies
Multi template engine driver for PHP
Installation
composer require rush/view-strategies
Getting started
<?php use Rush\View; View::configure([ 'base_path' => '/path/to/view', 'default_extension' => 'php', 'strategies' => [ 'php' => 'View\\Strategy\\Plate', 'jade' => 'View\\Strategy\\Jade', ], ]); echo new View('index.php')->render([ 'name' => 'John', 'age' => 30 ]); echo new View('relative/path/to/view.jade')->render();
See more example
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.