amitkhare / easy-template
EasyTemplate is an easy to use minimal PHP templating engine.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/amitkhare/easy-template
This package is not auto-updated.
Last update: 2025-09-27 23:10:35 UTC
README
EasyTemplate is an easy to use minimal PHP templating engine.
INSTALL
VIA COMPOSER
composer require amitkhare/easy-template dev-master
VIA GIT
git clone https://github.com/amitkhare/easy-template.git
EXAMPLE USAGE
<?php // autoload via composer require __DIR__.'/../vendor/autoload.php'; // OR WITHOUT COMPOSER // require __DIR__.'/PATH-TO/EasyRouter.php'; use AmitKhare\EasyTemplate; // Take an instance of EasyTemplate Class. $template = new EasyTemplate(__DIR__.'/resources/',[]); // render header echo $template->view('template/public/header',['title'=>'EasyTemplate']); // render page echo $template->view('views/pages/home'); // render footer echo $template->view('template/public/footer');