PHPackages                             bitbag/smash-promotion-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. bitbag/smash-promotion-plugin

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

bitbag/smash-promotion-plugin
=============================

Smash promotion plugin for Sylius.

1341PHP

Since Jul 26Pushed 6y agoCompare

[ Source](https://github.com/BitBagCommerce/SyliusSmashPromotionPlugin)[ Packagist](https://packagist.org/packages/bitbag/smash-promotion-plugin)[ RSS](/packages/bitbag-smash-promotion-plugin/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://camo.githubusercontent.com/1567208cc7c8ec53cf6e2af4f54449a9bb3ab0dee7916998de4e3ce9b7f79015/68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67) ](https://sylius.com)

Plugin Skeleton
===============

[](#plugin-skeleton)

Skeleton for starting Sylius plugins.

Installation
------------

[](#installation)

1. Run `composer create-project sylius/plugin-skeleton ProjectName`.
2. From the plugin skeleton root directory, run the following commands:

    ```
    $ (cd tests/Application && yarn install)
    $ (cd tests/Application && yarn build)
    $ (cd tests/Application && bin/console assets:install public -e test)

    $ (cd tests/Application && bin/console doctrine:database:create -e test)
    $ (cd tests/Application && bin/console doctrine:schema:create -e test)
    ```

To be able to setup a plugin's database, remember to configure you database credentials in `tests/Application/.env` and `tests/Application/.env.test`.

Usage
-----

[](#usage)

### Running plugin tests

[](#running-plugin-tests)

- PHPUnit

    ```
    $ vendor/bin/phpunit
    ```
- PHPSpec

    ```
    $ vendor/bin/phpspec run
    ```
- Behat (non-JS scenarios)

    ```
    $ vendor/bin/behat --tags="~@javascript"
    ```
- Behat (JS scenarios)

    1. Download [Chromedriver](https://sites.google.com/a/chromium.org/chromedriver/)
    2. Download [Selenium Standalone Server](https://www.seleniumhq.org/download/).
    3. Run Selenium server with previously downloaded Chromedriver:

        ```
        $ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone.jar
        ```
    4. Run test application's webserver on `localhost:8080`:

        ```
        $ (cd tests/Application && bin/console server:run localhost:8080 -d public -e test)
        ```
    5. Run Behat:

        ```
        $ vendor/bin/behat --tags="@javascript"
        ```

### Opening Sylius with your plugin

[](#opening-sylius-with-your-plugin)

- Using `test` environment:

    ```
    $ (cd tests/Application && bin/console sylius:fixtures:load -e test)
    $ (cd tests/Application && bin/console server:run -d public -e test)
    ```
- Using `dev` environment:

    ```
    $ (cd tests/Application && bin/console sylius:fixtures:load -e dev)
    $ (cd tests/Application && bin/console server:run -d public -e dev)
    ```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15603601?v=4)[bitbag](/maintainers/bitbag)[@bitbag](https://github.com/bitbag)

---

Top Contributors

[![patrick477](https://avatars.githubusercontent.com/u/21317699?v=4)](https://github.com/patrick477 "patrick477 (4 commits)")[![bitbager](https://avatars.githubusercontent.com/u/28542010?v=4)](https://github.com/bitbager "bitbager (1 commits)")

### Embed Badge

![Health badge](/badges/bitbag-smash-promotion-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/bitbag-smash-promotion-plugin/health.svg)](https://phpackages.com/packages/bitbag-smash-promotion-plugin)
```

PHPackages © 2026

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