PackageTrack
Sign in Get early access

symfony/ux-twig-component

Twig components for Symfony

v3.4.0 21M downloads/mo #541 most downloaded on Packagist symfony/ux-twig-component

What this package is like to depend on

Last release 26 days ago

28 Jul 2026

Ships fairly regularly

a new release about every 3 weeks

Some releases are documented

notes for 25 of 61 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

61 releases · first in 2021

9 releases in the last 12 months

see the full history below

Release timeline

55 releases · Dec 2021 to Jul 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 61
  1. v3.4.0 28 Jul 2026
    Release notes

    Changelog (v3.3.0...v3.4.0)

    • feature #3395 Support component tag names from expressions and component objects (@andreybotanic)
    • minor #3735 Add sync-packages.php to normalize packages .gitattributes (@Kocal)
    Open source →
    Release notes
    • Add support for dynamic component names in the {% component %} tag using a parenthesized expression, e.g. {% component (prefix ~ i) %}{% endcomponent %}
    Open source →
  2. v3.3.0 05 Jul 2026
    Release notes

    Changelog (v3.2.0...v3.3.0)

    • no significant changes
    Open source →
  3. v3.2.0 11 Jun 2026
    Release notes

    Changelog (v3.1.0...v3.2.0)

    • feature #3602 Allow standalone usage with any PSR-11 container (@guillaume-sainthillier)
    • feature #3600 Expose pre/embedded render methods on ComponentRendererInterface (@treztreiz)
    Open source →
    Release notes
    • Add ComponentRendererInterface::preCreateForRender(), ComponentRendererInterface::startEmbeddedComponentRender(), and ComponentRendererInterface::finishEmbeddedComponentRender() methods
    • Allow using ComponentFactory and ComponentRuntime with any PSR-11 container, making symfony/dependency-injection optional for standalone usage
    Open source →
  4. v3.1.0 29 May 2026
    Release notes

    Changelog (v3.0.0...v3.1.0)

    • feature #3455 Use twig.safe_class tag and move setLexer to TwigComponentPass (@GromNaN)
    • bug #3500 Include attribute name in null value error message (@IndraGunawan)
    • feature #3512 Add provide() and inject() Twig functions (@Kocal)
    Open source →
    Release notes
    • Add provide() and inject() Twig functions to share state from a parent component down to deeply-nested descendants without prop drilling
    • Include the attribute name in the error message thrown when an attribute value is null
    Open source →
  5. v3.0.0 09 Apr 2026
    Release notes

    Changelog (v2.34.0...v3.0.0)

    • feature #3453 Update minimum required Symfony version to 7.4 (@Kocal)
    • feature #3450 Upgrade minimum required PHP version to 8.4 (@Kocal)
    • feature #3407 Allow Symfony UX 3.x packages (@Kocal)
    • feature #3408 Add support for AttributeValueInterface from twig/html-extra:^3.24.0 in ComponentAttributes (@Kocal)
    • bug #3398 Post-merge fixes for 3.x (@Kocal)
    • bug #3191 Fix 2.x -> 3.x merge (@Kocal)
    • bug #3187 Add phpunit.dist.xml in .gitattributes (@Kocal)
    • bug #3182 Drop Symfony PHPUnit Bridge in favor of PHPUnit >= 11.0 (@Kocal)
    • bug #3105 Remove dev-dependency on WebpackEncoreBundle (@Kocal)
    • feature #3040 Remove deprecations (@smnandre)
    • feature #2998 Upgrade minimum required PHP version to 8.2 (@Kocal)
    • feature #2996 Update minimum required Symfony version to ^6.4 (@Kocal)
    Open source →
    Release notes
    • Minimum required Symfony version is now 7.4
    • Minimum required PHP version is now 8.4
    • The configuration twig_component.defaults could not be nullable anymore
    • Remove method PreCreateForRenderEvent::getProps() in favor of PreCreateForRenderEvent::getInputProps()
    • Remove cva Twig function in favor of html_cva Twig function from twig/html-extra
    • Passing null as an attribute value when using ComponentAttributes (or attributes Twig variable) will now throw an exception, use remove() instead
    • Remove method ComponentAttributes::add(), use {{ attributes.defaults(stimulus_controller('...')) }} instead
    • The ComponentTemplateFinder does not accept Twig\Environment as first argument anymore, pass a LoaderInterface instead
    • The ComponentTemplateFinder does not accept a nullable directory argument anymore, pass a string instead
    • Remove old compatibility layer with deprecated StimulusTwigExtension from WebpackEncoreBundle ^1.0, use StimulusBundle instead
    Open source →
  6. v2.36.0 03 Apr 2026
    Release notes

    Changelog (v2.35.0...v2.36.0)

    • no significant changes
    Open source →
  7. v2.35.0 no date
    Release notes

    Changelog (v2.34.0...v2.35.0)

    • feature #3407 Allow Symfony UX 3.x packages (@Kocal)
    • feature #3408 Add support for AttributeValueInterface from twig/html-extra:^3.24.0 in ComponentAttributes (@Kocal)
    Open source →
  8. v2.34.0 15 Mar 2026
    Release notes

    Changelog (v2.33.0...v2.34.0)

    • no significant changes
    Open source →
  9. v2.33.0 no date
    Release notes

    Changelog (v2.32.0...v2.33.0)

    • bug #3372 Fix reflection issues for private properties from trait and parent class (@kachnitel)
    • bug #3381 Fix profiling loaded in production (@VincentChataignier)
    • feature #3361 Allow components use dynamically templates (@xDeSwa)
    • bug #3341 Minor performance improvement by caching PropertyAccessor::isWritable() calls (@Kocal)
    • bug #3340 Minor performance improvements when using { props } (@Kocal)
    • feature #3295 Add support for anonymous component name resolution in other bundle (@Phil23)
    Open source →
  10. v2.32.0 25 Dec 2025

    Nothing published for this version

  11. v2.31.0 17 Oct 2025

    Nothing published for this version

  12. v2.30.0 27 Aug 2025

    Nothing published for this version

  13. v2.29.2 14 Aug 2025

    Nothing published for this version

  14. v2.29.0 05 Aug 2025
    Release notes
    • Add Symfony 8 support
    Open source →
  15. v2.28.2 29 Jul 2025

    Nothing published for this version

  16. v2.28.0 27 Jun 2025

    Nothing published for this version

  17. v2.27.0 21 Jun 2025

    Nothing published for this version

  18. v2.26.0 26 May 2025

    Nothing published for this version

  19. v2.25.2 20 May 2025
    Release notes
    • Fix ComponentAttributes rendering when using StimulusAttributes as default attributes
    Open source →
  20. v2.25.1 19 May 2025
    Release notes
    • [SECURITY] ComponentAttributes now requires a Twig\Runtime\EscaperRuntime instance as second argument
    • Remove HtmlAttributeEscaperInterface, TwigHtmlAttributeEscaper and ComponentAttributesFactory
    Open source →
  21. v2.25.0 17 May 2025
    Release notes
    • [SECURITY] Make ComponentAttributes responsible for attribute escaping ensuring consistent and secure HTML output across all rendering contexts
    • Deprecate not passing an HtmlAttributeEscaperInterface to the ComponentAttributes constructor
    Open source →
  22. v2.24.0 21 Mar 2025

    Nothing published for this version

  23. v2.23.0 25 Jan 2025

    Nothing published for this version

  24. v2.22.1 07 Dec 2024

    Nothing published for this version

  25. v2.22.0 23 Nov 2024

    Nothing published for this version

  26. v2.21.0 05 Oct 2024

    Nothing published for this version

  27. v2.20.0 24 Sep 2024
    Release notes
    Open source →
  28. v2.19.2 13 Aug 2024

    Nothing published for this version

  29. v2.19.0 01 Aug 2024

    Nothing published for this version

  30. v2.18.1 11 Jun 2024

    Nothing published for this version

  31. v2.18.0 06 Jun 2024

    Nothing published for this version

  32. v2.17.0 19 Apr 2024
    Release notes
    • Add nested attribute support #1405
    Open source →
  33. v2.16.0 29 Feb 2024
    Release notes
    • Introduce CVA to style TwigComponent #1416
    • Drop Twig 2 support #1436
    • Fix full context is stored in profiler #1552
    • Add CVA (Class variant authority) integration #1416
    Open source →
  34. v2.15.0 20 Feb 2024
    Release notes
    • Add the ability to render specific attributes from the attributes variable #1442
    • Restrict Twig 3.9 for now #1486
    • Build reproducible TemplateMap to fix possible post-deploy breakage #1497
    Open source →
  35. v2.14.2 07 Feb 2024

    Nothing published for this version

  36. v2.14.0 30 Jan 2024
    Release notes
    • Make ComponentAttributes traversable/countable
    • Fixed lexing some {# twig comments #} with HTML Twig syntax
    • Fix various usages of deprecated Twig code
    Open source →
  37. v2.13.3 01 Dec 2023

    Nothing published for this version

  38. v2.13.1 08 Nov 2023

    Nothing published for this version

  39. v2.13.0 07 Nov 2023
    Release notes
    • [BC BREAK] Add component metadata to PreMountEvent and PostMountEvent
    • Added configuration to separate your components into different "namespaces"
    • Add outerScope variable reach variables from the parent template of an "embedded" component.
    • Deprecate calling ComponentTemplateFinder constructor without directory argument.
    • Add profiler integration: TwigComponentDataCollector and debug toolbar templates
    • Add search feature in debug:twig-component command.
    • Fix inconsistencies with how {% component %}/<twig:component> syntaxes are rendered vs component(): PostRenderEvent is now dispatched & the template resolution happens at runtime.
    • Fix priority of passed in props vs default props with anonymous components.
    • Add Symfony 7 support.
    • TwigPreLexer: improve performance.
    • Fix twig:lint bug with anonymous component tag.
    Open source →
  40. v2.12.0 22 Sep 2023
    Release notes
    • Added a debug:twig-component command.
    • Fixed bad exception when the error comes from a Twig template.
    • Fixed deprecation with TemplateCacheWarmer return type.
    Open source →
  41. v2.11.2 07 Sep 2023

    Nothing published for this version

  42. v2.11.1 05 Sep 2023

    Nothing published for this version

  43. v2.11.0 24 Aug 2023
    Release notes
    • Support ...spread operator with html syntax (requires Twig 3.7.0 or higher)
    • Add support for anonymous Twig components.
    • Add RenderedComponent::crawler() and toString() methods.
    • Allow a block outside a Twig component to be available inside via outerBlocks.
    • Fix <twig:component> syntax where an attribute is set to an empty value.
    • Add component debug command for TwigComponent and LiveComponent.
    Open source →
  44. v2.10.0 28 Jun 2023

    Nothing published for this version

  45. v2.9.2 07 Oct 2024

    Nothing published for this version

  46. v2.9.1 30 May 2023

    Nothing published for this version

  47. v2.9.0 24 May 2023
    Release notes
    • The ComponentAttributes::defaults() method now accepts any iterable argument. The ComponentAttributes::add() method has been deprecated. To add a Stimulus controller to the attributes, use {{ attributes.defaults(stimulus_controller('...')) }}.
    Open source →
  48. v2.8.1 12 May 2023

    Nothing published for this version

  49. v2.8.0 01 May 2023
    Release notes
    • Add new HTML syntax for rendering components: <twig:ComponentName>
    • true attribute values now render just the attribute name, false excludes it entirely.
    • Add helpers for testing components.
    • The first argument to AsTwigComponent is now optional and defaults to the class name.
    • Allow passing a FQCN to ComponentFactory methods.
    Open source →
  50. v2.7.1 19 Jan 2023

    Nothing published for this version

  51. v2.7.0 no date
    Release notes
    • PreMount and PostMount hooks can now return nothing.
    Open source →
  52. v2.6.1 22 Nov 2022

    Nothing published for this version

  53. v2.6.0 no date

    Nothing published for this version

  54. v2.5.0 07 Nov 2022

    Nothing published for this version

  55. v2.4.0 17 Jun 2022

    Nothing published for this version

  56. v2.3.0 no date

    Nothing published for this version

  57. v2.2.0 31 May 2022

    Nothing published for this version

  58. v2.1.1 14 Mar 2022

    Nothing published for this version

  59. v2.1.0 22 Feb 2022

    Nothing published for this version

  60. v2.0.1 03 Dec 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive