Download the PHP package devuri/twigit without Composer
On this page you can find all versions of the php package devuri/twigit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devuri/twigit
More information about devuri/twigit
Files in devuri/twigit
Package twigit
Short Description Twig integration library
License MIT
Homepage https://github.com/devuri/twigit
Informations about the package twigit
A Streamlined Templating Approach
Modern development increasingly leans toward mono repo architectures that centralize application code, dependencies, and templates in a unified repository. This approach simplifies collaboration, version control, and deployment—making it ideal for large-scale and maintainable web projects.
Embrace the Hybrid CMS:
A hybrid-cms approach allows you to keep WordPress’ as your back end while bypassing the default theme system in favor of a templating engine like Twig.
1. Install Twigit via Composer
In your project root (mysite
), install Twigit using Composer:
This installs Twigit and Twig in the vendor
directory.
2. Configure Twigit to Use the templates
Directory
Twigit can be configured via an mu-plugin or programmatically to locate templates in mysite/templates
. For example:
If using Raydium, many configuration steps are already handled. Learn more here: Raydium GitHub Repository.
3. Organize Your Templates
Create a templates
directory in your project root:
You can copy and adapt Twigit's base templates from its GitHub repository: Twigit Base Templates
4. Example Twig Template
Here’s a simple example of a base Twig template:
All versions of twigit with dependencies
pimple/pimple Version 3.5.*
psr/container Version ^2.0
twig/twig Version 3.11.3
symfony/deprecation-contracts Version ^2.5