squirrelphp/twig-php-syntax
Twig PHP Syntax is a Twig extension that adds PHP-like syntax to templates, letting PHP developers use familiar expressions and control structures while rendering with Twig. It bridges PHP habits and Twig's templating engine for simpler, more intuitive template authoring.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symfony/twig-bridge | 0.87 | Twig Bridge integrates the Twig template engine with Symfony components, letting you render Twig templates within Symfony apps and use framework features like forms, translations, and routing directly in your templates. | 2,505 | 2,507 | 46 | 5M | 0 | 48.6 | 53.7 | MIT | 1 week ago | |
| barryvdh/laravel-twigbridge | 0.87 | TwigBridge lets you use the Twig templating engine in Laravel alongside Blade. It provides Twig extensions for Laravel helpers, facades, and auth, plus view integration so you can render .twig templates with familiar syntax and caching support. | 56 | 59 | 7 | 8 | 3 | 0.6 | 1.1 | — | — | |
| dpolac/twig-lambda | 0.87 | Adds lambda and arrow-function syntax to Twig templates, letting you write inline closures like map((x) => x * 2) directly in your templates. A small, focused extension for cleaner data transformations without custom filters or PHP callbacks. | 45 | — | 22 | — | 3 | 1.8 | 1.1 | MIT | 8 years ago |
|
| redant/twig-components | 0.87 | Redant/Twig Components brings Laravel-style component architecture to Twig, making it easy to build reusable, self-contained UI components with slots, attributes, and view models. Keep templates organized and markup DRY across your PHP app. | 38 | 38 | 3 | 18 | 0 | 0.3 | 2.3 | MIT | 2 years ago | |
| rcrowe/twigbridge | 0.87 | — | 905 | 917 | 170 | 173K | 87 | 57.2 | 65.2 | MIT | 3 weeks ago | |
| olveneer/twig-components-bundle | 0.86 | Twig Components Bundle for Symfony adds a component layer to Twig, letting you build reusable, encapsulated UI pieces with their own templates, logic, and styles. Compose pages from components instead of loose includes, keeping markup organized and props explicit. | 31 | 31 | 3 | 0 | 3 | 1.5 | 2.3 | — | — | |
| spiral/twig-bridge | 0.86 | Twig adapter for the Spiral Framework. Adds a Twig view engine via TwigBootloader, with support for custom extensions, options, and processors. Configure eagerly through TwigEngine or lazily through TwigBootloader. Requires spiral/views. | 0 | 0 | 3 | 1K | 2 | 4.5 | 43.0 | MIT | 3 years ago | |
| widop/twig-extensions-bundle | 0.86 | WidopTwigExtensionsBundle integrates the widop/twig-extensions library into Symfony, registering extra Twig filters, functions, and extensions through the bundle so templates get handy helpers for text, URLs, and more without manual service wiring. | 2 | 2 | 1 | 0 | 0 | 0.0 | — | — | — | |
| symfony/twig-pack | 0.86 | Official Symfony pack that bundles Twig templating for Symfony apps: Twig, the Twig bridge and needed integrations. Quick install via Composer to add rendering, templates, extensions and common defaults for modern Symfony projects. | 270 | 273 | 2 | 97K | 0 | 1.7 | 35.3 | MIT | 6 years ago | |
| symfony2admingenerator/twig-generator | 0.86 | Twig generator component for Symfony2AdminGenerator, providing Twig-based templates and rendering support for generated Symfony admin interfaces. Helps scaffold and customize CRUD backends with reusable Twig templates. | 1 | 1 | 4 | 790 | 0 | 0.1 | 35.9 | MIT | 1 year ago | |
| gradientz/twig-express-bundle | 0.86 | Symfony bundle that integrates Twig Express templating into your Symfony app, offering a streamlined Twig-based rendering layer with simple configuration and service integration for building and rendering templates quickly. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | 9 years ago | |
| intaro/twig-sandbox-bundle | 0.85 | Symfony bundle integrating Twig's sandbox extension to safely render untrusted templates with configurable security policies, allowed tags, filters, functions, and methods. Ideal for user-supplied templates. | 7 | 7 | 7 | 46K | 0 | 0.5 | 51.9 | MIT | 1 year ago | |
| recranet/twig-spreadsheet-bundle | 0.85 | Symfony bundle adding Twig functions and filters for working with spreadsheets, so templates can read, render, and export spreadsheet data without extra PHP glue. Lightweight integration for generating Excel or CSV output directly from Twig views. | 4 | — | 0 | — | 0 | 16.9 | — | MIT | 2 months ago | |
| lelyfoto/twig-instanceof | 0.85 | Twig extension that adds an instanceof test, letting templates check whether a value is an instance of a given class or interface. Lightweight and easy to register for cleaner, type-aware Twig conditionals. | 8 | 9 | 4 | 10K | 1 | 10.5 | 45.5 | MIT | 6 months ago | |
| intaro/twig-injection-bundle | 0.85 | Symfony bundle that injects container services into Twig templates, letting views call service methods directly instead of adding controller boilerplate. Configure exposed services and reuse them as handy view helpers for routing, formatting, and other presentation logic. | 7 | 7 | 5 | 46K | 0 | 0.6 | 52.0 | MIT | 2 years ago | |
| mapado/twig-extensions-bundle | 0.85 | A Symfony bundle that bundles useful Twig extensions from the Mapado Twig Extensions library into your application, adding handy filters and functions to templates with minimal setup and configuration. | 0 | 0 | 1 | 0 | 0 | 0.0 | — | NOASSERTION | — | |
| dinhquochan/laravel-twig | 0.84 | Integrates the Twig templating engine into Laravel, letting you render .twig views alongside Blade. Includes a view engine, service provider, and configuration for using Twig syntax, filters, and extensions in Laravel applications. | 27 | 29 | 9 | 2K | 0 | 0.7 | 24.4 | MIT | 3 years ago | |
| yepsua/smartwig | 0.84 | SmartWig is a Laravel/PHP package for building reusable HTML widgets with a fluent, object-oriented API. It helps encapsulate forms, grids, and other UI components so views stay clean and markup is generated consistently across your application. | 6 | 7 | 1 | 9 | 0 | 0.1 | 5.0 | MIT | — | |
| jdecool/twig-constant-accessor-bundle | 0.84 | Symfony bundle that integrates a Twig extension for reading PHP class constants and enum cases directly in templates. It exposes a dedicated accessor function so shared values can stay in PHP while remaining easy to use in Twig, without writing custom extensions. | 9 | 9 | 4 | 119 | 0 | 0.1 | 10.8 | MIT | 2 years ago | |
| oosaulenko/looly-gutenberg | 0.84 | Laravel package for handling Gutenberg editor blocks: parse, render, and manage WordPress block content inside PHP applications, with helpers for block markup and serialized block data. Small, low-adoption project with limited maintenance activity. | 1 | 1 | 0 | 0 | 0 | 0.3 | — | NOASSERTION | 2 years ago |
How can I help you explore Laravel packages today?