g737a6b/php-r2-template

PHP template library.

1.3.3 2023-12-31 06:45 UTC

This package is auto-updated.

Last update: 2024-03-01 09:47:00 UTC


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

The MIT License

Copyright (c) 2023 Hiroyuki Suzuki