Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Timber | 5,307 | 131 | 77 | 15 hours ago | 122 | May 20, 2023 | 85 | mit | PHP | |
Create WordPress themes with beautiful OOP code and the Twig Template Engine | ||||||||||
Bolt | 4,156 | 406 | 29 | 3 months ago | 236 | February 22, 2023 | 54 | mit | PHP | |
Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL. | ||||||||||
Drupal8 Links | 288 | 6 years ago | 5 | |||||||
Drupal 8 links & resources | ||||||||||
Doctum | 244 | 2 | a month ago | 14 | January 09, 2022 | 11 | mit | PHP | ||
A php API documentation generator, fork of Sami | ||||||||||
Silverstripe Installer | 163 | 6 | 2 | 24 days ago | 265 | February 09, 2023 | 6 | bsd-3-clause | Twig | |
The installer for Silverstripe CMS and Framework. Check out this repository to start working with Silverstripe! | ||||||||||
Sprig | 128 | 8 years ago | 6 | PHP | ||||||
Sprig is a WordPress Starter Theme that features the Twig Templating Engine | ||||||||||
Simplethingsformextrabundle | 104 | 10 | 7 years ago | 4 | April 17, 2014 | 6 | PHP | |||
[DEPRECATED] | ||||||||||
Sage Twig Theme | 95 | 7 years ago | 3 | mit | JavaScript | |||||
Best of Sage and Twig in one Theme | ||||||||||
Emulsify Drupal | 86 | 1 | a month ago | 24 | September 09, 2022 | 21 | gpl-2.0 | JavaScript | ||
Drupal theme built with Storybook and Webpack | ||||||||||
Meadow | 72 | 4 | 1 | 5 years ago | 3 | December 31, 2018 | mit | PHP | ||
WordPress templating DSL based on Twig. |
By Jared Novack (@jarednova), Lukas Gächter (@lgaechter), Nicolas Lemoine (@nlemoine), Erik van der Bas (website), Coby Tamayo (@cobytamayo), Upstatement and hundreds of other GitHub contributors:
Timber helps you create fully-customized WordPress themes faster with more sustainable code. With Timber, you write your HTML using the Twig Template Engine separate from your PHP files.
This cleans up your theme code so, for example, your PHP file can focus on being the data/logic, while your Twig file can focus 100% on the HTML and display.
This is what Timber's .twig
files look like (from this Hello World example)
{% extends "base.twig" %}
{% block content %}
<h1 class="big-title">{{ foo }}</h1>
<h2 class="post-title">{{ post.title }}</h2>
<img src="{{ post.thumbnail.src }}" />
<div class="body">
{{ post.content }}
</div>
{% endblock %}
Once Timber is installed and activated in your plugins
directory, it gives any WordPress theme the ability to take advantage of the power of Twig and other Timber features.
The GitHub version of Timber requires Composer and is setup for inclusion within a theme or plugin. If you'd prefer one-click installation for your site, you should use the WordPress.org version.
cd ~/wp-content/themes/my-theme
composer require timber/timber
If your theme/plugin is not setup to pull in Composer's autoload file, you will need to
/* functions.php */
require_once(__DIR__ . '/vendor/autoload.php');
After this line, initialize Timber with
$timber = new \Timber\Timber();
Setup the Timber Starter Theme. Once you have that installed in your WordPress setup, continue reading the Getting Started guide to Themeing.
Timber is a tool for developers who want to translate their HTML into high-quality WordPress themes through an intuitive, consistent and fully-accessible interface.
Nothing. Timber is meant for you to build a theme on. Like _s it comes style-free, because you're the style expert. Instead, Timber handles the logic you need to make a kick-ass looking site.
Timber is great for any WordPress developer who cares about writing good, maintainable code. It helps teams of designers and developers working together. At Upstatement we made Timber because while our entire team needs to participate in building WordPress sites, not everyone knows the ins-and-outs of the_loop(), codex and PHP (nor should they). With Timber your best WordPress engineer can focus on building the .php
files with requests from WordPress and pass the data into .twig
files. Once there, designers can easily mark-up data and build out a site's look-and-feel.
Please post on StackOverflow under the "Timber" tag. Please use GitHub issues only for specific bugs, feature requests and other types of issues.
Timber is MIT-licensed, so please use in personal or commercial work. Just don't re-sell it. Timber is used on tens of thousands of sites (and tons more we don't know about)
We love PRs! Read the Contributor Guidelines for more info. Say hello, share your tips/work, and spread the love on Twitter at @TimberWP.
Since 2013 our goal at Timber is to create a library to that helps you create fully-customized WordPress themes faster with more sustainable code.
Through the collaborative efforts of both our dedicated team and countless contributors, we have invested numerous hours in maintaining and enhancing Timber. To keep doing that, we rely on the invaluable support of our sponsors.
Are you a WordPress pro or part of an agency who relies on Timber? Keep the magic alive by becoming a sponsor! By becoming a sponsor, you contribute to the continuous maintenance and enhancement of Timber, ultimately benefiting developers worldwide.
The Official Documentation for Timber is generated from the contents of this repository:
docs
directory.