Registry / web-framework / timber-timber

timber-timber

JSON →
library2.3.3phppackagistunverified

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

composer require timber/timber
INSTALL
IMPORT
SIG · TIMBER-TIMBER
T
timber-timber
web-frameworkphpv2.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Timber
use Timber\Timber;

Render a Twig template with Timber context for a WordPress post.

use Timber\Timber; $context = Timber::context(); $context['post'] = Timber::get_post(); Timber::render('single.twig', $context);
Debug
Known issues
breakingRequires WordPress 5.3+ and PHP 7.4+ for version 2.x
fix
Update WordPress and PHP to meet minimum requirements
affects: >=2.0.0
Upgrade
Version history
2.3.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
timber-timber — pip install timber-timber · libregistry