PHPackages                             barbieswimcrew/sw6-ux-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. barbieswimcrew/sw6-ux-plugin

ActiveShopware-platform-plugin[Templating &amp; Views](/categories/templating)

barbieswimcrew/sw6-ux-plugin
============================

Example for the use of symfony/ux twig components in Shopware6 plugin scope

v1.0.1(3y ago)285MITPHPPHP &gt;= 8.0

Since Sep 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/barbieswimcrew/sw6-ux-plugin)[ Packagist](https://packagist.org/packages/barbieswimcrew/sw6-ux-plugin)[ RSS](/packages/barbieswimcrew-sw6-ux-plugin/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Using Symfony UX Twig Components in Shopware 6
==============================================

[](#using-symfony-ux-twig-components-in-shopware-6)

Example for the use of symfony/ux Twig Components in Shopware6 plugin scope

🚀 How to install
----------------

[](#-how-to-install)

This repository delivers a sample plugin for your Shopware 6 project to show you how to use Symfony UX Twig Components to get data into the Shopware 6 storefront.

### Composer install (recommended)

[](#composer-install-recommended)

```
composer require barbieswimcrew/sw6-ux-plugin
bin/console plugin:refresh
bin/console plugin:install --activate MyPlugin

```

### Registering the TwigComponentBundle

[](#registering-the-twigcomponentbundle)

By requiring the `barbieswimcrew/sw-6-ux-plugin` via composer the `symfony/ux-twig-component` dependency has been added, too.

This package is an ordinary Symfony bundle. Thus, we need to add the TwigComponentBundle manually to the list of bundles defined in `config/bundles.php` which you'll find in your project's root directory.

Just add the following line to the array of registered bundles:

```
// config/bundles.php
