symfony-ux-twig-component

Community

Create reusable Twig components with PHP backing.

Authorwoweya
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Symfony + Twig components are powerful but manual boilerplate is repetitive. This Skill outlines how to build reusable Twig Components with PHP backing to streamline UI development in Symfony UX projects.

Core Features & Use Cases

  • Prop-driven PHP-backed components: public properties become component props, with support for default values and computed accessors.
  • Slots, composition, and anonymous components: compose reusable UI blocks with named slots and optional template-only components.
  • Lifecycle hooks and customization: PreMount and PostMount hooks for prop validation and post-setup logic; custom names and templates.
  • Designer-friendly usage: straightforward authoring with AsTwigComponent attributes and Twig usage via twig:YourComponent.

Quick Start

Define a Twig component by annotating a PHP class with AsTwigComponent, create a matching Twig template, and render it with the twig:Component tag.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: symfony-ux-twig-component
Download link: https://github.com/woweya/Symfony-UX-LiveComponent-Skill/archive/main.zip#symfony-ux-twig-component

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.