rush / view-strategies
该软件包已被放弃,不再维护。未建议替代软件包。
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
[[已弃用]] 此存储库不再维护。我们将在 2017/12/31 删除此存储库并取消发布软件包。
php-view-strategies
PHP多模板引擎驱动程序
安装
composer require rush/view-strategies
入门
<?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();
查看更多 示例
测试
composer test
许可证
MIT 许可证(MIT)。请参阅 许可证文件 了解更多信息。