setono / sylius-coupon-url-application-plugin
Setono example plugin for Sylius.
Fund package maintenance!
Setono
Installs: 7 832
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: >=8.1
- doctrine/persistence: ^2.5 || ^3.0
- setono/doctrine-object-manager-trait: ^1.1
- sylius/core: ^1.0
- sylius/core-bundle: ^1.0
- sylius/grid-bundle: ^1.11
- sylius/order: ^1.0
- sylius/promotion: ^1.0
- sylius/resource-bundle: ^1.8
- symfony/config: ^5.4 || ^6.4 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.4 || ^7.0
- symfony/deprecation-contracts: ^2.5 || ^3.2
- symfony/event-dispatcher: ^5.4 || ^6.4 || ^7.0
- symfony/form: ^5.4 || ^6.4 || ^7.0
- symfony/http-foundation: ^5.4 || ^6.4 || ^7.0
- symfony/http-kernel: ^5.4 || ^6.4 || ^7.0
- symfony/options-resolver: ^5.4 || ^6.4 || ^7.0
- twig/twig: ^2.15 || ^3.0
- webmozart/assert: ^1.11
Requires (Dev)
- api-platform/core: ^2.7.16
- babdev/pagerfanta-bundle: ^3.8
- behat/behat: ^3.14
- doctrine/doctrine-bundle: ^2.11
- infection/infection: ^0.27.9
- jms/serializer-bundle: ^4.2
- lexik/jwt-authentication-bundle: ^2.17
- matthiasnoback/symfony-config-test: ^4.3
- matthiasnoback/symfony-dependency-injection-test: ^4.3 || ^5.0
- phpunit/phpunit: ^9.6
- psalm/plugin-phpunit: ^0.18
- setono/code-quality-pack: ^2.6
- sylius/sylius: ~1.12.13
- symfony/debug-bundle: ^5.4 || ^6.4 || ^7.0
- symfony/dotenv: ^5.4 || ^6.4 || ^7.0
- symfony/intl: ^5.4 || ^6.4 || ^7.0
- symfony/property-info: ^5.4 || ^6.4 || ^7.0
- symfony/serializer: ^5.4 || ^6.0.1
- symfony/web-profiler-bundle: ^5.4 || ^6.4 || ^7.0
- symfony/webpack-encore-bundle: ^1.17
- willdurand/negotiation: ^3.1
README
Apply coupons by going to example.com/coupon
or directly from the URL by going to
example.com/?coupon=CODE
.
Installation
composer require setono/sylius-coupon-url-application-plugin
Import routing
# config/routes/setono_sylius_coupon_url_application.yaml setono_sylius_coupon_url_application: resource: "@SetonoSyliusCouponUrlApplicationPlugin/Resources/config/routes.yaml"
or if your app doesn't use locales:
# config/routes/setono_sylius_coupon_url_application.yaml setono_sylius_coupon_url_application: resource: "@SetonoSyliusCouponUrlApplicationPlugin/Resources/config/routes_no_locale.yaml"
Install assets
php bin/console assets:install