PHPackages                             cwa/sylius-example-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cwa/sylius-example-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

cwa/sylius-example-plugin
=========================

Example plugin for Creatis Web Art

0.1(2y ago)01[2 PRs](https://github.com/arhulCWA/SyliusExamplePlugin/pulls)proprietaryPHPPHP ^8.0

Since Oct 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/arhulCWA/SyliusExamplePlugin)[ Packagist](https://packagist.org/packages/cwa/sylius-example-plugin)[ RSS](/packages/cwa-sylius-example-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (31)Versions (5)Used By (0)

Création de plugin CWA
======================

[](#création-de-plugin-cwa)

Installation du projet
----------------------

[](#installation-du-projet)

```
composer create-project sylius/plugin-skeleton VendorNameSyliusPluginNamePlugin
```

Changement dans le Nommage
--------------------------

[](#changement-dans-le-nommage)

### Composer.json

[](#composerjson)

Ajouter :

```
{
    "name": "vendor-name/sylius-plugin-name-plugin",
    "description": "Description of plugin",
    "version": "VERSION",
// ...
```

Changer :

```
// ...
 "autoload": {
        "psr-4": {
            "Acme\\SyliusExamplePlugin\\": "src/",
            "Tests\\Acme\\SyliusExamplePlugin\\": "tests/"
        }
    },
// ...
```

 🔽

```
// ...
 "autoload": {
        "psr-4": {
            "VendorName\\SyliusPluginNamePlugin\\": "src/",
            "Tests\\VendorName\\SyliusPluginNamePlugin\\": "tests/"
        }
    },
// ...
```

### Renomage de fichiers

[](#renomage-de-fichiers)

***src/AcmeSyliusExamplePlugin*** ▶️ ***src/VendorNameSyliusPluginNamePlugin***

***src/DependencyInjection/AcmeSyliusExampleExtension*** ▶️ ***src/DependencyInjection/VendorNameSyliusPluginNameExtention***

### Changements dans les fichiers :

[](#changements-dans-les-fichiers-)

- src/DependencyInjection/Configuration.php :

    - namespace :

        ```
        // ...
        namespace Acme\SyliusExamplePlugin;
        // ...
        ```

         🔽

        ```
        // ...
        namespace VendorName\SyliusPluginNamePlugin;
        // ...
        ```
    - treeBuilder name :

        ```
        // ...
        public function getConfigTreeBuilder(): TreeBuilder
            {
                $treeBuilder = new TreeBuilder('iron_man_sylius_product_on_demand_plugin');
        // ...
        ```

         🔽

        ```
        // ...
        public function getConfigTreeBuilder(): TreeBuilder
            {
                $treeBuilder = new TreeBuilder('vendor_name_sylius_plugin_name_plugin');
        // ...
        ```
- src/DependencyInjection/VendorNameSyliusPluginNameExtension.php :

    - namespace :

        ```
        // ...
        namespace Acme\SyliusExamplePlugin;
        // ...
        ```

         🔽

        ```
        // ...
        namespace VendorName\SyliusPluginNamePlugin;
        // ...
        ```
    - classname :

        ```
        // ...
        final class AcmeSyliusExampleExtension extends AbstractResourceExtension implements PrependExtensionInterface
        // ...
        ```

         🔽

        ```
        // ...
        final class VendorNameSyliusPluginNameExtension extends AbstractResourceExtension implements PrependExtensionInterface
        // ...
        ```
    - Migration Diretory :

        ```
        // ...
        protected function getMigrationsDirectory(): string
        {
            return '@AcmeSyliusExamplePlugin/migrations';
        }
        // ...
        ```

         🔽

        ```
        // ...
        protected function getMigrationsDirectory(): string
        {
            return '@VendorNameSyliusPluginNamePlugin/migrations';
        }
        // ...
        ```
- src/VendorNameSyliusPluginNamePlugin.php :

    - namespace :

        ```
        // ...
        namespace Acme\SyliusExamplePlugin;
        // ...
        ```

         🔽

        ```
        // ...
        namespace VendorName\SyliusPluginNamePlugin;
        // ...
        ```
    - classname :

        ```
        // ...
        final class AcmeSyliusExamplePlugin extends Bundle

        // ...
        ```

         🔽

        ```
        // ...
        final class VendorNameSyliusPluginNamePlugin extends Bundle

        // ...
        ```
- tests/Application/config/bundles.php :

    ```
    // ...
        Acme\SyliusExamplePlugin\AcmeSyliusExamplePlugin::class => ['all' => true],
    // ...
    ```

     🔽

    ```
    // ...
        VendorName\SyliusPluginNamePlugin\VendorNameSyliusPluginNamePlugin::class => ['all' => true],
    // ...
    ```
- tests/Application/bin/console :

    ```
    // ...
    use Tests\Acme\SyliusExamplePlugin\Application\Kernel;
    // ...
    ```

     🔽

    ```
    // ...
    namespace Tests\Acme\SyliusExamplePlugin\Application;
    // ...
    ```
- tests/Application/Kernel.php :

    ```
    // ...
    namespace Tests\VendorName\SyliusPluginNamePlugin\Application;
    // ...
    ```

     🔽

    ```
    // ...
    use Tests\VendorName\SyliusPluginNamePlugin\Application\Kernel,
    // ...
    ```

Commandes à éxécuter :
----------------------

[](#commandes-à-éxécuter--)

```
composer dump-autoload
```

```
(cd tests/Application && yarn install)
(cd tests/Application && yarn build)
(cd tests/Application && APP_ENV=test bin/console assets:install public)
```

Comment tester le plugin :
--------------------------

[](#comment-tester-le-plugin-)

### Environement de test intégré :

[](#environement-de-test-intégré-)

### Importer les fichiers de configuration :

[](#importer-les-fichiers-de-configuration-)

-Tests/Application/config/routes.yaml :

```
//...
pluginName_example:
    resource: "@VendorNameSyliusPluginNamePlugin/src/Resources/config/app/routing.yaml"
//...
```

-Tests/Application/config/services.yaml :

```
//...
imports:
    - { resource : '@VendorNameSyliusPluginNamePlugin/src/Resources/config/app/services.yaml'}
//...
```

#### Démararer le serveur web :

[](#démararer-le-serveur-web-)

```
(cd tests/Application && php symfony serve:start)
```

### Depuis un projet externe :

[](#depuis-un-projet-externe-)

#### Méthode git :

[](#méthode-git-)

```
//...
 "repositories": {
        "VendorNameSyliusPluginNamePlugin": {
            "type": "git",
            "url": "https://github.com/arhulCWA/tarteaufraise.git"
        }
    },
//...
    "require": {
//...
        "vendor-name/sylius-plugin-name-plugin" : "dev-main"
    },
//...
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

927d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d411c76f3b4f29766e78dde00a7f759f30bc8a10e1c290f0872c818c8020ab72?d=identicon)[AxelR\_CWA](/maintainers/AxelR_CWA)

---

Top Contributors

[![arhulCWA](https://avatars.githubusercontent.com/u/145778712?v=4)](https://github.com/arhulCWA "arhulCWA (7 commits)")[![AxelRhul](https://avatars.githubusercontent.com/u/130466720?v=4)](https://github.com/AxelRhul "AxelRhul (3 commits)")

---

Tags

syliussylius-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cwa-sylius-example-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/cwa-sylius-example-plugin/health.svg)](https://phpackages.com/packages/cwa-sylius-example-plugin)
```

###  Alternatives

[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

691.7M14](/packages/sylius-refund-plugin)[stefandoorn/sitemap-plugin

Sitemap Plugin for Sylius

851.0M](/packages/stefandoorn-sitemap-plugin)[dedi/sylius-seo-plugin

Sylius SEO plugin by Dedi.

28138.9k](/packages/dedi-sylius-seo-plugin)[tilleuls/sylius-click-n-collect-plugin

Click and Collect plugin for Sylius, to sell and deliver securely during the COVID-19 pandemic.

7814.2k](/packages/tilleuls-sylius-click-n-collect-plugin)[monsieurbiz/sylius-rich-editor-plugin

A Rich Editor plugin for Sylius.

75380.8k6](/packages/monsieurbiz-sylius-rich-editor-plugin)[odiseoteam/sylius-blog-plugin

This plugin add blog capabilities to your Sylius project

37104.5k](/packages/odiseoteam-sylius-blog-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
