# timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

Repository: https://github.com/timber/timber
Canonical: https://ross.abutalabs.com/products/timber-timber
Homepage: https://timber.github.io/docs/
Language: PHP
License: MIT
License Family: permissive
Topics: twig, wordpress, upstatement, timber, php, hactoberfest
Last push: 2026-08-21T10:23:23+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 86, longevity 100
- inputs: {"age_days": 4991, "days_push": 12, "days_rel": 96, "gap_med": 14, "n_releases_24m": 12}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5652, forks 504 (observed 2026-08-28T04:09:27.070112+00:00)

## What it is
Timber is a PHP library that lets developers build WordPress themes using object-oriented code and the Twig template engine. It separates data/logic in PHP from HTML presentation in Twig files for cleaner, more maintainable theme code.

## Use cases
- build wordpress themes with twig templates
- separate php logic from html in wordpress
- write oop wordpress theme code
- replace the wordpress loop with cleaner templating
- create custom wordpress themes faster

## When to choose
- you develop WordPress themes and want Twig templating
- you want clean separation of data logic and presentation in WordPress
- you prefer OOP patterns over traditional WordPress template files

## When to avoid
- you build non-WordPress PHP projects
- you prefer classic WordPress PHP template hierarchy
- you need a plugin-style install rather than Composer

## Facets
- artifact type: library
- maturity: active
- function: templating, web-framework
- domain: web-development, cms, frontend
- platform: php, self-hosted
- tags: wordpress, twig, theme-development, mvc, oop, web-server

## Member repositories
- timber/timber (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:27.070112+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-29T17:55:16.031990+00:00, confidence not recorded.
  - readme: https://github.com/timber/timber (fetched 2026-08-28T04:09:27.070112+00:00, sha 28e179d7bdc1)
  - homepage: https://timber.github.io/docs/ (fetched 2026-08-29T08:49:39.412241+00:00, sha 259fc07dcea4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
