g737a6b / php-r2-template
PHP template library.
1.3.3
2023-12-31 06:45 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^10.5
README
PHP template library.
Examples of use
$R2Template = new R2Template\R2Template("./templates"); $R2Template->set("var1", "foo"); $R2Template->set("var2", "bar"); $R2Template->display("echo_vars.php");// foo bar
Installation
Composer
Add a dependency to your project's composer.json
file.
{ "require": { "g737a6b/php-r2-template": "*" } }
Development
Install dependencies
docker run -it --rm -v $(pwd):/app composer:2.6.6 install
Run tests
docker run -it --rm -v $(pwd):/app -w /app php:8.3 ./vendor/bin/phpunit ./tests
License
Copyright (c) 2023 Hiroyuki Suzuki