g737a6b/php-r2-template

PHP template library.

1.3.1 2021-12-03 08:46 UTC

This package is auto-updated.

Last update: 2022-07-01 00:15:22 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.0 install

Run tests

docker run -it --rm -v $(pwd):/app composer:2.0 run-script tests

License

The MIT License

Copyright (c) 2021 Hiroyuki Suzuki