ikuzostudio / stock-alert-plugin
Stock Alert implementation for Sylius.
Installs: 322
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 3
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: ^1.11
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.99
- phpstan/phpstan-doctrine: 0.12.33
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^5.4
- symfony/debug-bundle: ^5.4
- symfony/dotenv: ^5.4
- symfony/intl: ^5.4
- symfony/web-profiler-bundle: ^5.4
- vimeo/psalm: 4.7.1
This package is auto-updated.
Last update: 2025-03-12 13:07:51 UTC
README
Stock Alert
Add Stock Alert & subscription into Sylius.
/!\ Currently in alpha /!\
Quickstart
$ composer require ikuzostudio/stock-alert-plugin
Add plugin dependencies to your config/bundles.php
file:
return [ // ... Ikuzo\SyliusStockAlertPlugin\IkuzoSyliusStockAlertPlugin::class => ['all' => true], ];
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml imports: ... - { resource: "@IkuzoSyliusStockAlertPlugin/Resources/config/app/config.yaml"}
Add routes in config/routes.yaml
# config/routes.yaml ikuzo_stock_alert_routes: resource: "@IkuzoSyliusStockAlertPlugin/Resources/config/routing.yaml"
Add the StockAlertChannelInterface to the Channel model and implement it with the StockAlertChannelChannelTrait
use Ikuzo\SyliusStockAlertPlugin\Model\StockAlertChannelInterface; use Ikuzo\SyliusStockAlertPlugin\Model\StockAlertChannelTrait; class Channel extends BaseChannel implements StockAlertChannelInterface { use StockAlertChannelTrait; }