A PHP library to automagically make simple PHP scripts look like real websites
<?php
require_once __DIR__ . '/vendor/autoload.php';
use AutoTemplate\AutoTemplate;
new AutoTemplate('My Website', [
'Home' => '/',
'Page 1' => 'page1.php',
'Google' => 'http://google.com'
]);
echo "here is an <b>HTML</b> fragment";
- run
composer require 9072997/auto-template
. - If you don't have
require_once __DIR__ . '/vendor/autoload.php';
at the top of your scripts already, add it.
Download AutoTemplate.php and require
it in your script