# thephpleague/plates

Native PHP template system

Repository: https://github.com/thephpleague/plates
Canonical: https://ross.abutalabs.com/products/plates
Homepage: https://platesphp.com
Language: PHP
License: MIT
License Family: permissive
Topics: php7, templates, native-php-templates
Last push: 2026-01-10T05:18:36+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 61, release rhythm 8, longevity 100
- inputs: {"age_days": 4800, "days_push": 235, "days_rel": 669, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1529, forks 183 (observed 2026-08-28T04:04:58.754968+00:00)

## What it is
Plates is a native PHP template system that is fast, easy to use, and easy to extend. It brings modern template features like layouts, inheritance, and data sharing to plain PHP templates without requiring a new syntax to learn.

## Use cases
- render html views with native php templates
- use template layouts and inheritance in php
- avoid learning a new template syntax like twig
- share and preassign data across templates
- group templates into namespaced folders
- add custom template functions and extensions

## When to choose
- you prefer native PHP over compiled template languages like Twig or Smarty
- you want a framework-agnostic, lightweight templating library
- you want to reuse existing PHP functions in your templates
- you need layouts, sections, and template inheritance without a new syntax

## When to avoid
- you want sandboxed templates with auto-escaping by default
- your team prefers a dedicated template language with stricter separation of logic and views
- you need compiled templates for maximum performance

## Facets
- artifact type: library
- maturity: stable
- function: templating
- domain: web-development, backend
- platform: php
- tags: native-php-templates, template-engine, framework-agnostic, layouts, template-inheritance

## Member repositories
- thephpleague/plates (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.754968+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:29.135942+00:00, confidence not recorded.
  - readme: https://github.com/thephpleague/plates (fetched 2026-08-28T04:04:58.754968+00:00, sha a6ea60680c68)
  - homepage: https://platesphp.com (fetched 2026-08-29T11:33:56.005546+00:00, sha 362e32b24d2b)
  - site_page: https://platesphp.com/getting-started/simple-example (fetched 2026-08-29T11:33:56.008413+00:00, sha 2f8230dd8aa0)
  - site_page: https://platesphp.com/getting-started/installation (fetched 2026-08-29T11:33:56.010449+00:00, sha 50493c7a0f32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
