twig-component - Server-rendered UI components for Symfony
Create reusable UI components with PHP classes and Twig templates, server-rendered without JavaScript
Tags
Updated: 2026-06-15Typical Inputs
Typical Outputs
What this skill does
- create component
- define props
- render template
- inject content
- compute values
- merge attributes
- nest components
- configure component
- access services
- run hooks
Inputs
- Twig template
- PHP class
- Component directory
- Props data
- Block content
- Attributes
Outputs
- Component class
- Component template
- Rendered markup
- HTML component tag
Requirements
- Symfony framework
- Twig template engine
- PHP 8.0+
