Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 937 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 937 Bytes

Build Status Latest Stable Version Latest Unstable Version License

Summary

A wrapper for template engines. The purpose of this library is to make it easier to switch between different template engines.

Installation

composer require crowdstar/template

Sample Usage

<?php
use CrowdStar\Template\Template;
use CrowdStar\Template\TemplateEngine\Mustache;

(new Template(new Mustache()))->render('Hello {{planet}}', ['planet' => 'World!']); // "Hello World!"
?>