setono / sylius-plugin-skeleton
Acme example plugin for Sylius.
Package info
github.com/Setono/SyliusPluginSkeleton
Type:sylius-plugin
pkg:composer/setono/sylius-plugin-skeleton
Fund package maintenance!
Requires
- php: >=8.3
- sylius/core-bundle: ^2.3
- symfony/config: ^6.4 || ^7.4
- symfony/dependency-injection: ^6.4 || ^7.4
- symfony/http-kernel: ^6.4 || ^7.4
Requires (Dev)
- api-platform/doctrine-orm: ^4.3
- api-platform/symfony: ^4.3.3
- gedmo/doctrine-extensions: ^3.22.2
- knplabs/knp-menu-bundle: ^3.4.1
- liip/imagine-bundle: ^2.17.1
- payum/core: ^1.7.5
- setono/sylius-plugin: ^2.0
- sylius/fixtures-bundle: ^1.10.1
- sylius/grid-bundle: ^1.15
- sylius/sylius: ~2.3.3
- symfony/debug-bundle: ^6.4 || ^7.4
- symfony/dotenv: ^6.4 || ^7.4
- symfony/intl: ^6.4 || ^7.4
- symfony/property-info: ^6.4 || ^7.4
- symfony/serializer: ^6.4 || ^7.4
- symfony/var-exporter: ^6.4 || ^7.4
- symfony/web-profiler-bundle: ^6.4 || ^7.4
- symfony/webpack-encore-bundle: ^2.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 13:11:49 UTC
README
Setono have made a bunch of plugins for Sylius, and we have some guidelines that we try to follow when developing plugins. These guidelines are used in this repository, and it gives you a very solid base when developing plugins.
Enjoy!
Quickstart
-
Run
composer create-project --prefer-source --no-install --remove-vcs setono/sylius-plugin-skeleton:2.3.x-dev ProjectName
or just click the
Use this templatebutton at the right corner of this repository. -
Run
cd ProjectName && composer install
-
From the plugin skeleton root directory, run the following commands:
php init (cd tests/Application && yarn install) (cd tests/Application && yarn build) (cd tests/Application && bin/console assets:install --symlink) (cd tests/Application && bin/console doctrine:database:create) (cd tests/Application && bin/console doctrine:schema:create) (cd tests/Application && bin/console sylius:fixtures:load -n)
php initrenames the placeholder names to your vendor and plugin names, and replacesCLAUDE.mdwith a short one for your plugin that links to this skeleton'sCLAUDE.md, which holds the conventions Setono's plugins follow. -
Start your local PHP server:
symfony serve(see https://symfony.com/doc/current/setup/symfony_server.html for docs)
To be able to set up a plugin's database, remember to configure you database credentials in tests/Application/.env and tests/Application/.env.test.
Installation
The plugin ships no Flex recipe, so an application installs it with these steps.
-
Require the plugin:
composer require setono/sylius-plugin-skeleton
-
Register the plugin in
config/bundles.php:Acme\SyliusExamplePlugin\AcmeSyliusExamplePlugin::class => ['all' => true],
-
Import the plugin's routes in
config/routes/acme_sylius_example.yaml:acme_sylius_example: resource: "@AcmeSyliusExamplePlugin/config/routes.yaml"
If your shop doesn't use localised URLs, import
@AcmeSyliusExamplePlugin/config/routes_no_locale.yamlinstead.