derniercri / sylius-menu-plugin
This plugins allows you to manage menus.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 21
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/sylius: ^1.10.0
Requires (Dev)
- behat/behat: ^3.7
- 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
- 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: >2.0.0-alpha.0 ^2.0@dev
- lchrusciel/api-test-case: ^5.0
- phpmd/phpmd: @stable
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.93
- phpstan/phpstan-doctrine: 0.12.41
- phpstan/phpstan-webmozart-assert: 0.12.15
- phpunit/phpunit: ^8.5
- stripe/stripe-php: ^6.43
- sylius-labs/coding-standard: ^3.2
- symfony/browser-kit: ^4.4 || ^5.2
- symfony/debug-bundle: ^4.4 || ^5.2
- symfony/dotenv: ^4.4 || ^5.2
- symfony/flex: ^1.11
- symfony/intl: ^4.4 || ^5.2
- symfony/web-profiler-bundle: ^4.4 || ^5.2
- symplify/easy-coding-standard: ^8.3
README
Menu Plugin
This plugins allows you to manage your menus.
Installation
composer require monsieurbiz/sylius-menu-plugin
Change your config/bundles.php
file to add the line for the plugin:
<?php return [ //.. MonsieurBiz\SyliusMenuPlugin\MonsieurBizSyliusMenuPlugin::class => ['all' => true], ];
Then create the config file in config/packages/monsieurbiz_sylius_menu_plugin.yaml
:
imports: - { resource: "@MonsieurBizSyliusMenuPlugin/Resources/config/config.yaml" }
Finally import the routes in config/routes/monsieurbiz_sylius_menu_plugin.yaml
:
monsieurbiz_menu_admin: resource: "@MonsieurBizSyliusMenuPlugin/Resources/config/routes/admin.yaml" prefix: /%sylius_admin.path_name%
Then run it:
bin/console doctrine:migrations:migrate
Customize your menu
If you want to customize your menu, like adding an image, do so by overriding the MenuItem entity (more info about overriding entities in the Sylius documentation).
Menu example
Admin form index
Menu front view
The front view is exactly the same as the default one.
Contributing
You can open an issue or a Pull Request if you want! 😘
Thank you!