ducrot/twigcn-bundle
TwigcnBundle brings shadcn/ui-inspired, accessible UI components to Symfony & Twig. Install the PHP bundle plus the @ducrot/twigcn-ui NPM package and compile Tailwind CSS to use ready-made, themeable components in your templates.
*"This package lets our team build polished, accessible UIs 3–5x faster by reusing pre-built components (like modals, forms, and navigation menus) instead of designing them from scratch. It’s like using Lego blocks for our frontend—consistent, reliable, and easy to assemble. For example:
Investment: Minimal (Composer/NPM install + ~1 hour setup). ROI: Faster iterations, lower dev costs, and a more cohesive product experience."*
*"Pros:
Trade-offs:
Recommendation: Pilot with 2–3 high-impact pages (e.g., admin dashboard, checkout) to validate velocity gains before full adoption."*
*"Why This Rocks:
<twig:Twigcn:Dialog>—done. Accessible, styled, and interactive.controllers.json.Gotchas:
<twig:Twigcn:Switch> → SwitchComponent).Quick Win: Replace 3 custom modals/forms with this package—save 10+ hours of dev time."*
How can I help you explore Laravel packages today?