{"repo":"phppkg/easytpl","free":true,"listed":false,"github":"https://github.com/phppkg/easytpl","clone":"git clone https://github.com/phppkg/easytpl.git","description":"⚡️ Simple and fastly template engine for PHP.","language":"PHP","stars":25,"topics":["template-engine","template","render-template","php","text-template","html-template","renderer","rendering-engine"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"EasyTpl ⚡️ Simple and fastly template engine for PHP. Features - It's simple, lightweight and fastly. - No learning costs, syntax like PHP template - It is simply processed and converted into native PHP syntax - Compatible with PHP native syntax - support simple echo print syntax. eg: {{ var }} {{= $var }} {{ $var }} {{ echo $var }} - allow ignore prefix $ , will auto append on compile. - support chained access array value. eg: {{ $arr.0 }} {{ $map.name }} {{ $map.user.name }} - support all control syntax. such as if,elseif,else;foreach;for;switch - support php builtin function as filters. eg: {{ $var ucfirst }} {{ date('Y-m-d') }} - More secure, the output will be processed automatically through htmlspecialchars by default - You can set to disable output filtering or manually use the raw filter - support add custom filters. - default builtin filters: upper lower nl - support add custom directive. - EasyTemplate built in support layout include contents - ExtendTemplate built in support extends block endblock - support comments in templates. eg: {{# comments ... #}} Install composer Quick start Output : More usage The syntax is the same as the PHP native template, and the special syntax added is just to make it more convenient to use. - EasyTemplate enables output filtering by default, which can be used to render view templates. - TextTemplate turns off output filtering and is mainly used for text processing, code generation, etc. Config template more settings： Echo variable T","default_branch":null,"files":null,"tree":[],"storefront":"/r/phppkg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phppkg/easytpl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}