PHP Twig

Open-source PHP projects categorized as Twig

Top 23 PHP Twig Projects

  • Grav

    Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony

  • Project mention: Ask HN: What products other than Obsidian share the file over app philosophy? | | 2024-04-03

    There are flat-file CMSes (content management systems) like Grav:

    I guess, in some vague/broad sense, config-as-code systems also implement something similar? Maybe even OpenAPI schemas could count to some degree...?

    In the old days, the "semantic web" movement was an attempt to make more webpages both human- and machine-readable indefinitely by tagging them with proper schema: Even Google was on board for a while, but I guess it never saw much uptake. As far as I can tell it's basically dead now, both because of non-semantic HTML (everything as a React div), general laziness, and LLMs being able to parse things loosely.


    Side thoughts...

    Philosophically, I don't know that capturing raw data alone as files is really sufficient to capture the nuances of any particular experience, or the overall zeitgeist of an era. You can archive Geocities pages, but that doesn't really capture the novelty and indie-ness of that era. Similarly, you can save TikTok videos, but absent the cultural environment that created them (and a faithful recreation of the recommendation algorithm), they wouldn't really show future archaeologists how teenagers today lived.

    I worked for a natural history museum for a while, and while we were there, one of the interesting questions (well, to me anyway) was whether our web content was in and of itself worth preserving as a cultural artifact -- both so that future generations can see what exhibits were interesting/apropos for the cultures of our times, but also so they could see how our generation found out about those exhibitions to begin with (who knows what the Web will morph into 50 years later). It wasn't enough to simply save the HTML of our web pages, both because they tie into various other APIs and databases (like zoological collections) and because some were interactive experiences, like games designed to be played with a mouse (before phones were popular), or phone chatbots with some of our specimens. To really capture the experience authentically would've required emulating not just our tech stacks and devices, among other things.

    Like for the earlier Geocities example, sure you could just save the old HTML and render it with a modern browser, but that's not the same as something like , which emulates the whole OS and browser too. And that still isn't the same as having to sit in front of a tiny CRT and wait minutes for everything to download over a 14.4k modem, only to be interrupted when mom had to make a call.

    I guess that's a longwinded of critiquing "file over app": It only makes sense for things that are originally files/documents to begin with. Much of our lives now are not flat docs but "experiences" that take much more thought and effort to archive. If the goal is truly to preserve that posterity, it's not enough to just archive their raw data, but to develop ways to record and later emulate entire experiences, both technological and cultural. It ain't easy!

  • Twig

    Twig, the flexible, fast, and secure template language for PHP

  • Project mention: How to integrate Component Architecture into Symfony? | | 2024-03-15

    Miscommunication in our projects is costly. A single misunderstood User Story can result in 3 days of wasted development time. Additionally, when developers do not use the same programming language, it may be necessary to construct APIs to facilitate communication, which can also be expensive. It is important to consider why front-end developers may be hesitant to work with Twig and how this can lead to a disconnect between front-end and back-end development.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • timber

    Create WordPress themes with beautiful OOP code and the Twig Template Engine (by timber)

  • Project mention: Modern Plugin Boilerplate - GIT + PHP8 + Composer | /r/ProWordPress | 2023-06-20

    Use Timber for templating

  • Bolt

    Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL. (by bolt)

  • Project mention: Bolt VS core - a user suggested alternative | | 2024-04-13
  • Pico

    Pico is a stupidly simple, blazing fast, flat file CMS. (by picocms)

  • Project mention: EZ Question: Image Files in Obsidian Vault | /r/ObsidianMD | 2023-08-08

    I'm cooking up a really cheap publishing solution using Pico CMS ("stupidly simple") and rsync or something from my Obsidian Vault to my PHP server.

  • CraftCMS

    Build bespoke content experiences with Craft. (by craftcms)

  • Project mention: Different flavors of content management | | 2023-08-28

    The most typical approach is having a CMS admin panel sit somewhere on the server; everyone with an account uses this. This is a very convenient approach, especially when working with a team. This way, many people can work on different articles simultaneously without worrying about potential conflicts or overwriting stuff. The only con is related to security - everyone can try to get inside, and if you forget to update our CMS or some user have a weak password, it can be someone outside of our team. WordPress, Drupal, CraftCMS, or Ghost are perfect examples of such CMSs.

  • Slugify

    Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • starter-theme

    The "_s" for Timber: a dead-simple theme that you can build anything from

  • Chamilo LMS

    Chamilo is a learning management system focused on ease of use and accessibility

  • ec-cube

    EC-CUBE is the most popular e-commerce solution in Japan

  • Bolt 5 Core

    🧿 Bolt 5 core (by bolt)

  • Project mention: Bolt VS core - a user suggested alternative | | 2024-04-13

    This is the next generation of Bolt.

  • Spress

    PHP Static site generator (by spress)

  • MtHaml

    Multi target HAML (HAML for PHP, Twig, <your language here>)

  • Chyrp Lite

    An ultra-lightweight blogging engine, written in PHP.

  • Project mention: Chyrp Lite – An Ultra-Lightweight Tumblelogging Engine Using PHP and SQLite | | 2024-03-12
  • Twig-View

    Slim Framework view helper built on top of the Twig templating component

  • twigcs

    The missing checkstyle for twig!

  • Rehike

    A custom YouTube server that aims to faithfully restore the old frontend and layout.

  • Project mention: YouTube is now testing a "three-strikes" policy for adblockers | /r/privacy | 2023-07-01

    Try rehike old YouTube layout with built-in adblocker

  • yoyo

    Yoyo is a full-stack PHP framework to create rich, dynamic interfaces using server-rendered HTML. You keep on writing PHP and let Yoyo make your creations come alive.

  • ux-twig-component

    Twig components for Symfony

  • media-bundle

    MediaBundle is a media file manager bundle for Symfony with a REST API and an admin interface (React)

  • sprig

    Bare bones Twig templating support for WordPress (by kingkool68)

  • query-monitor-twig-profile

    Displays Twig profiler output in Query Monitor

  • footnotes

    Craft CMS plugin for adding a footnotes feature to Redactor fields and Twig templates

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-04-13.

PHP Twig related posts


What are some of the best open-source Twig projects in PHP? This list will help you:

Project Stars
1 Grav 14,283
2 Twig 8,009
3 timber 5,431
4 Bolt 4,154
5 Pico 3,787
6 CraftCMS 3,155
7 Slugify 2,846
8 starter-theme 799
9 Chamilo LMS 749
10 ec-cube 732
11 Bolt 5 Core 528
12 Spress 375
13 MtHaml 363
14 Chyrp Lite 361
15 Twig-View 345
16 twigcs 330
17 Rehike 178
18 yoyo 173
19 ux-twig-component 139
20 media-bundle 47
21 sprig 42
22 query-monitor-twig-profile 27
23 footnotes 21
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives