PHP Templating

Open-source PHP projects categorized as Templating Edit details

Top 17 PHP Templating Projects

  • Twig

    Twig, the flexible, fast, and secure template language for PHP

    Project mention: [OOP] Using static methods to generate HTML/Bootstrap | reddit.com/r/PHPhelp | 2022-06-30

    Normally, you do not have classes to render HTML. It is ugly and difficult to maintain. Instead, you would use a template processor like Twig to render HTML-like templates into a webpage. This separates out the code from markup and is generally more pleasant to work with.

  • Mustache

    A Mustache implementation in PHP.

  • Cloudways

    Managed Cloud Hosting Platform. Cloudways leverages advanced technology and powerful servers. Cloudways is a one-click managed cloud hosting platform that provides cloud application and server management solutions.

  • Smarty

    Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.

    Project mention: newline at {if} tags | reddit.com/r/smarty | 2022-04-20
  • Plates

    Native PHP template system

    Project mention: Hey, anyone facing issues with Airtel Broadband/Prepaid blocking websites randomly | reddit.com/r/india | 2021-11-27
  • Latte

    ☕ Latte: the safest & truly intuitive templates for PHP. Engine for those who want the most secure PHP sites.

    Project mention: How to localize Nette app using contributte/translation and Localazy | dev.to | 2022-03-23

    In the template file, we passed a variable called project containing a value into the extracted string mentioned before. All of this is done using an array as a second argument of the underscore tag notation. This is how this pairing works using latte templating engine and NEON. We've also used the noescape filter, which disables automatic escaping so the HTML tags are actually rendered and not printed as a text.

  • MtHaml

    Multi target HAML (HAML for PHP, Twig, <your language here>)

  • PHPTAL

    PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • Foil

    PHP template engine for native PHP templates

  • Blade

    View template engine of PHP extracted from Laravel (by xiaoler)

  • Phly Mustache

    PHP 5.3 Mustache implementation

  • Lex

    A lightweight template parser used by PyroCMS.

  • Tale Jade

    A complete and fully-functional implementation of the Jade template language for PHP

  • TextGenerator

    TextGenerator is a PHP package that aims to generate automated texts from data.

  • Aura.View

    Provides TemplateView and TwoStepView using PHP as the templating language, with support for partials, sections, and helpers.

  • PhpEcho

    A native PHP template engine: One class to rule them all ;-)

  • Dataplater

    Template engine that uses data-* attributes so your HTML templates look great before rendering

    Project mention: Template engine that uses HTML data-* attributes and keeps templates valid. What are your thoughts? | reddit.com/r/PHP | 2022-03-01
  • PHP-UI-Kit

    A toolkit for developing universal web interfaces with support for multiple CSS frameworks.

    Project mention: PHP-UI-Kit package | reddit.com/r/PHP | 2022-05-22
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-06-30.

PHP Templating related posts

Index

What are some of the best open-source Templating projects in PHP? This list will help you:

Project Stars
1 Twig 7,561
2 Mustache 3,139
3 Smarty 1,980
4 Plates 1,301
5 Latte 826
6 MtHaml 361
7 PHPTAL 167
8 Foil 164
9 Blade 145
10 Phly Mustache 123
11 Lex 103
12 Tale Jade 93
13 TextGenerator 86
14 Aura.View 82
15 PhpEcho 7
16 Dataplater 5
17 PHP-UI-Kit 4
Find remote jobs at our new job board 99remotejobs.com. There are 2 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
www.sonarlint.org