somesadas / sylius-banner-plugin
This plugin add banners to your Sylius project
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- vich/uploader-bundle: ^1.6
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.2
- friends-of-behat/cross-container-extension: ^1.1
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.2.1
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^4.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sylius-labs/coding-standard: ^2.0
This package is not auto-updated.
Last update: 2024-04-16 12:17:40 UTC
README
Description
This plugin add banners to the Sylius content. The banners are fully customizable by the admin.
Demo
You can see this plugin in action in our Sylius Demo application.
- Frontend: sylius-demo.odiseo.com.ar.
- Administration: sylius-demo.odiseo.com.ar/admin with
odiseo: odiseo
credentials.
Installation
-
Run
composer require odiseoteam/sylius-banner-plugin
. -
Add the plugin to the AppKernel but add it before SyliusResourceBundle. To do that you need change the registerBundles like this:
public function registerBundles(): array { $preResourceBundles = [ new \Odiseo\SyliusBannerPlugin\OdiseoSyliusBannerPlugin(), ]; $bundles = [ ... //This plugin use the vich uploader bundle new \Vich\UploaderBundle\VichUploaderBundle(), ]; return array_merge($preResourceBundles, parent::registerBundles(), $bundles); }
- Import the configurations on your config.yml:
- { resource: "@OdiseoSyliusBannerPlugin/Resources/config/config.yml" }
- Add the admin and shop routes:
odiseo_sylius_banner_admin: resource: "@OdiseoSyliusBannerPlugin/Resources/config/routing/admin.yml" prefix: /admin odiseo_sylius_banner_shop: resource: "@OdiseoSyliusBannerPlugin/Resources/config/routing/shop.yml" prefix: /{_locale}/banner
- Finish the installation updatating the database schema and installing assets:
php bin/console doctrine:schema:update --force
php bin/console assets:install
php bin/console sylius:theme:assets:install
## Fixtures
This plugin comes with fixtures:
### Banners
Simply add this configuration on your fixture suite:
```yml
banner:
options:
banners_per_channel: 12
Test the plugin
You can follow the instructions to test this plugins in the proper documentation page: Test the plugin.
Credits
This plugin is maintained by Odiseo. Want us to help you with this plugin or any Sylius project? Contact us on team@odiseo.com.ar.