Timber helps WordPress developers build custom themes with object-oriented PHP and Twig templates, keeping PHP logic separate from HTML presentation.
Overview
Timber is a developer library for WordPress theme work. It lets teams write HTML with the Twig template engine while PHP files handle data and application logic, which the project describes as a more sustainable way to build themes than relying on WordPress loop patterns alone.
Once integrated, Timber exposes WordPress content through Twig-oriented objects such as posts, terms, users, menus, and images. The documentation covers theming workflows, routing, menus, pagination, internationalization, and integrations such as ACF, Gutenberg, and WooCommerce.
From version 2.0 onward, Composer is the supported installation path for the library, and the maintainers direct existing users migrating from earlier releases to follow the upgrade guide. Timber is style-free by design and is meant to sit underneath your own theme design decisions.
Agencies and teams often adopt it so designers can work primarily in Twig while engineers wire up WordPress data in PHP. The project is maintained collaboratively and documents extension, helper utilities, and testing guidance for theme authors.
Key features
- Twig templating for WordPress themes
- Object-oriented access to WordPress data
- Separates PHP logic from HTML views
- Starter theme and cookbook guides
- Gutenberg and ACF integration docs
- Menu, routing, and pagination helpers
- Composer-based installation
- Extension and testing documentation
Use cases
- Building custom WordPress themes
- Designer-developer theme collaboration
- Refactoring legacy PHP theme templates
- Teams standardizing on Twig in WordPress