eghojansu / stuck-template
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP Template
dev-master
2021-10-11 09:18 UTC
Requires
- php: ^8.0.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2022-02-22 01:57:30 UTC
README
PHP Templating engine.
Installation
- With composer
composer req eghojansu/php-template:dev-master
Usage
<?php require __DIR__ . '/vendor/autoload.php'; $directories = './templates/'; // template directories, could be an array of directory or directories delimited by "," OR ";" OR "|" $extensions = 'php'; // template extension $templateManager = new Stuck\Template\Manager($directories); echo $templateManager->render('view'); // will render './templates/view.php'
Features
- PHP 8.0
- No Dependencies
- Globals
- Custom Helper
- Chainable
- Template Inheritance
- Escaping data by utilize
htmlspecialchars
.
Disclaimer
This is only simple php templating engine. The Code Coverage has reach 100% but not guaranted to be bug free.