sylius / price-history-plugin
Implementation of the Omnibus Directive for Sylius application.
Installs: 23 601
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 11
Forks: 9
Open Issues: 2
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: ~1.11.14 || ~1.12.4
- symfony/webpack-encore-bundle: ^1.15
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
- lchrusciel/api-test-case: ^5.2
- matthiasnoback/symfony-config-test: ^4.3
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- phparkitect/phparkitect: ^0.3.14
- phpspec/phpspec: ^7.2
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^1.8.1
- phpstan/phpstan-doctrine: 1.3.16
- phpstan/phpstan-strict-rules: ^1.3.0
- phpstan/phpstan-webmozart-assert: ^1.2.0
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sylius-labs/coding-standard: ^4.2
- sylius-labs/sylius-1-11-shim-bundle: ^1.0
- symfony/browser-kit: ^5.4 || ^6.0
- symfony/debug-bundle: ^5.4 || ^6.0
- symfony/dotenv: ^5.4 || ^6.0
- symfony/flex: ^2.2.2
- symfony/intl: ^5.4 || ^6.0
- symfony/runtime: ^5.4 || ^6.0
- symfony/web-profiler-bundle: ^5.4 || ^6.0
- vimeo/psalm: 4.27.0
Conflicts
- symfony/framework-bundle: 6.2.8
This package is auto-updated.
Last update: 2024-10-11 21:07:33 UTC
README
Price History Plugin
⚙️ Installation
We encourage you to use the installation instructions based on Rector and Recipes as it is more convenient and faster. The legacy installation guide is available here.
Installation with Recipes and Rector
Before you start, you need to have both SyliusRecipes and SyliusRector installed. You can find how to install them here:
-
Run:
composer require sylius/price-history-plugin --no-scripts
-
Update
<project_root>/rector.php
+ use Sylius\SyliusRector\Set\SyliusPriceHistory; return static function (RectorConfig $rectorConfig): void { // ... + $rectorConfig->sets([SyliusPriceHistory::PRICE_HISTORY_PLUGIN]); };
-
Run:
vendor/bin/rector
-
Ensure you have modified resource configured in
config/packages/_sylius.yaml
:sylius_channel: resources: channel: classes: model: App\Entity\Channel\Channel sylius_core: resources: channel_pricing: classes: model: App\Entity\Channel\ChannelPricing
-
Execute migrations:
bin/console doctrine:migrations:migrate
-
Rebuild the cache to display all new translations correctly:
bin/console cache:clear bin/console cache:warmup
-
Run messenger consumer:
bin/console messenger:consume main
For more information check official Symfony docs.