sylius / product-bundle-plugin
Product bundle for Sylius.
Fund package maintenance!
sylius
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 7
Forks: 2
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.2
- dompdf/dompdf: ^2.0
- sylius/sylius: ^2.0
Requires (Dev)
- behat/behat: ^3.14
- dmore/behat-chrome-extension: ^1.4
- 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.0
- nelmio/alice: ^3.10
- nyholm/psr7: ^1.8
- phpstan/phpstan-doctrine: ^1.5
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^10.5
- robertfausk/behat-panther-extension: ^1.1
- sylius-labs/coding-standard: ^4.4
- sylius-labs/suite-tags-extension: ~0.2
- sylius/sylius-rector: ^2.0
- sylius/test-application: ^2.0.0@alpha
- symfony/browser-kit: ^6.4 || ^7.1
- symfony/debug-bundle: ^6.4 || ^7.1
- symfony/dotenv: ^6.4 || ^7.1
- symfony/http-client: ^6.4 || ^7.1
- symfony/intl: ^6.4 || ^7.1
- symfony/web-profiler-bundle: ^6.4 || ^7.1
- symfony/webpack-encore-bundle: ^2.1
README
ProductBundle Plugin
This plugin provides product bundles feature for your Sylius store
Installation
Requirements:
We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.
Package | Version |
---|---|
PHP | ^8.2 |
sylius/sylius | ^2.0 |
MySQL | ^8.4 |
NodeJS | ^20.x |
Beware!
This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the legacy installation instruction. However, we strongly encourage you to use Symfony Flex, it's much quicker!
-
Require plugin with composer:
composer require sylius/product-bundle-plugin
Remember to allow community recipes with
composer config extra.symfony.allow-contrib true
or during plugin installation process -
Update your rector config
<?php declare(strict_types=1); use Rector\Config\RectorConfig; use Sylius\SyliusRector\Set\SyliusProductBundle; return static function (RectorConfig $rectorConfig): void { $rectorConfig->importNames(); $rectorConfig->removeUnusedImports(); $rectorConfig->import(__DIR__ . '/vendor/sylius/sylius-rector/config/config.php'); $rectorConfig->paths([ __DIR__ . '/src' ]); $rectorConfig->sets([ SyliusProductBundle::PRODUCT_BUNDLE, ]); };
And then run:
vendor/bin/rector process src
-
Run
yarn encore dev
oryarn encore production
-
Database update:
bin/console doctrine:migrations:migrate
Note: If you are running it on production, add the -e prod
flag to this command.
Clear application cache by using command:
bin/console cache:clear
Documentation
For more information about the plugin, please refer to the Sylius documentation.
Security issues
If you think that you have found a security issue, please do not use the issue tracker and do not post it publicly.
Instead, all security issues must be sent to security@sylius.com
Community
For online communication, we invite you to chat with us & other users on Sylius Slack.
License
This plugin's source code is completely free and released under the terms of the MIT license.