veejay / template
Text template with placeholders
1.1.0
2026-04-04 17:14 UTC
Requires
- php: >=8.0
Requires (Dev)
- phpunit/phpunit: ^9.6
This package is auto-updated.
Last update: 2026-04-04 17:14:59 UTC
README
Simple text template with placeholders.
Example
template.tpl
Placeholder: {{param}}
PHP
<?php use Veejay\Template\Template; $template = new Template('path/to/template.tpl'); $params = [ 'param' => 'one', ]; // Saving to file $template->save('path/to/file', $params); // Just return content $content = $template->getContent($params);
Result
Placeholder: one
Requirements
- PHP 8.0+
Installation
composer require veejay/template