PHP Template

Skor PHP Template

Skor php template is a set of classes featuring a basic class with simple placeholders and a second class with "sections" extending the template class. The section class will allow you nesting and repetetive use of code. Skor PHP Template is fully compatible with PHP 8.1.

Join the project


Download template php class

as tar.gz


Create clone

$ git clone

or via ssh

$ git clone

Skor PHP Template howto

include and instantiate the class section of the template system
$template = new section();
if set to 'true' you will see placeholders without values after display
$template->keep_unassigned = false;
Read one or more template files
simply fetch the content of a section for further processing
$head = $template->fetch('Head');
or prepare to display it
This is how you assign a placeholder