Recommended using template engine in non framework projects?

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

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

    Native PHP template system

    Yes, but you don’t need Twig or Blade. You can use the built in template engine (phtml). More important question is do you need some templating system. If yes: https://platesphp.com/ If you don’t use frameworks then I recommed to use composer with framework independent packages like the PhpLeague. More flexible approach than frameworks, but much faster than vanila PHP.

  • Latte

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

  • 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.

  • Fluid

    Fluid template rendering engine - Standalone version (by TYPO3)

    In some plain PHP projects i use Fluid https://github.com/TYPO3/Fluid. I like it.

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