First version of PHP Templating Abstraction released

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • templating

    A template abstraction prototype for php template engines. (by schranz-templating)

    It is supported via the Spiral View. The viewmanager by default will call Stempler you can test it out in the example spiral application running in examples/usages/spiral direcotory visiting /spiral-view will call the template here: https://github.com/schranz-templating/templating/blob/0.1/examples/usages/spiral/app/views/base.dark.php

  • Latte

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

    The target of the project is that more libraries / modules allow to use any Template engines the project want and see the more a as data provider. Also this kind of abstraction should make libraries e.g. a async mailer easier be integrated into different frameworks. A common usecase for myself is that Sulu CMS does not only support Twig but also other Template engines like example Latte which has interesting concept context aware escaping.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • hexagonal-architecture-study

    Project "Rabbit Hole": Dig into the rabbit hole of Hexagonal Architecture.

    I think you are talking here not about the Templating abstraction. I think you are talking about Sulu. Sorry for measling you here, the Hexagonal Architecture Setup is not part of the Sulu Core yet so you will find there nothing yet on the Github Repository of our Hexagonal Architecture implementation. But we are working on a change in the upcoming 3.0. An older prototype about how we are doing Hexagonal Architecture can be found here: https://github.com/alexander-schranz/hexagonal-architecture-study (there are things which I definitly would change and mor go into DDD) but maybe it gives you an overview.

  • sulu

    Core framework that implements the functionality of the Sulu content management system

    While I was working on Sulu CMS and did invest a lot about prototypes around Hexagonal Architecture. I did miss something specific in the PHP-Fig interfaces, a Interface for Template engines.

  • Twig

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

    Twig

  • Symfony

    The Symfony PHP framework

    Symfony (Twig, Blade, Latte, Plates, Smarty, Handlebars, Mustache)

  • Spiral Framework

    High-Performance PHP Framework (by spiral)

    ✅ Spiral (Twig, Blade, Latte, Plates, Smarty, Handlebars, Mustache, Spiral View)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • handlebars-php

    A simple, logic-less, yet powerful templating engine for PHP

    ✅ Handlebars

  • Plates

    Native PHP template system

    Plates

  • Mustache

    A Mustache implementation in PHP.

    Mustache

  • Laravel

    Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.

    Laravel (Twig, Blade, Latte, Plates, Smarty, Handlebars, Mustache)

  • fig-standards

    Standards either proposed or approved by the Framework Interop Group

  • Transphporm

    Transformation Style Sheets - Revolutionising PHP templating

    What I can say, since you're investing time into template engines, do you think any improvements can be made to transphporm? It was the one I looked for on your list and didn't see. Also happens to be the one I integrated for default suphle installations. Some points were raised in this issue https://github.com/Level-2/Transphporm/issues/5. I don't agree with all but I'm 100% on board with the idea of keeping all templating and logic outside the html

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts