agence-adeliom / sylius-easy-crud-plugin
Easy CRUD plugin for Sylius.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:sylius-plugin
pkg:composer/agence-adeliom/sylius-easy-crud-plugin
Requires
- php: ^8.2 || ^8.3 || ^8.4
- ext-intl: *
- ext-json: *
- embed/embed: ^4.4
- sylius/sylius: ^2.0
- symfony/uid: ^6.4 || ^7.1
Requires (Dev)
- behat/behat: ^3.16
- dmore/behat-chrome-extension: ^1.4
- dmore/chrome-mink-driver: ^2.9
- friends-of-behat/mink: ^1.11
- friends-of-behat/mink-browserkit-driver: ^1.6
- friends-of-behat/mink-debug-extension: ^2.1
- friends-of-behat/mink-extension: ^2.7
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.1
- friends-of-behat/symfony-extension: ^2.6
- friends-of-behat/variadic-extension: ^1.6
- friendsofsymfony/rest-bundle: ^3.7
- nyholm/psr7: ^1.8
- phpstan/phpstan: ^1.12
- phpstan/phpstan-doctrine: ^1.3
- 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/maker-bundle: ^1.64
- symfony/runtime: ^6.4 || ^7.1
- symfony/web-profiler-bundle: ^6.4 || ^7.1
- symfony/webpack-encore-bundle: ^2.2
- 2.x-dev
- v2.0.0
- v2.0.0-ALPHA-1
- 1.x-dev
- v1.14.5
- v1.14.4
- v1.14.3
- v1.14.2
- v1.14.1
- v1.14.0
- v1.13.19
- v1.13.18
- v1.13.17
- v1.13.16
- v1.13.15
- v1.13.14
- v1.13.13
- v1.13.12
- v1.13.11
- v1.13.10
- v1.13.9
- v1.13.8
- v1.13.7
- v1.13.6
- v1.13.5
- v1.13.4
- v1.13.3
- v1.13.2
- v1.13.1
- v1.13.0
- 0.x-dev
- dev-32-feat-migrate-to-sylius-stack
- dev-feature/test-application-plugin-migration
- dev-columns-rows
- dev-30-feature-request-move-autocomplete-method-to-a-trait
- dev-dependabot/composer/0.x/phpunit/phpunit-tw-11.2
- dev-dependabot/composer/0.x/vimeo/psalm-5.25.0
- dev-dependabot/github_actions/0.x/actions/cache-4
- dev-dependabot/github_actions/0.x/actions/upload-artifact-4
- dev-dependabot/npm_and_yarn/0.x/sass-loader-14.2.1
- dev-dependabot/npm_and_yarn/0.x/resolve-url-loader-5.0.0
- dev-dependabot/npm_and_yarn/0.x/bootstrap-5.3.3
- dev-dependabot/npm_and_yarn/trix-1.3.2
- dev-dependabot/npm_and_yarn/ws-8.17.1
- dev-dependabot/npm_and_yarn/braces-3.0.3
This package is not auto-updated.
Last update: 2025-11-07 19:53:40 UTC
README
Sylius Easy CRUD Plugin
Overview • Installation • Quick Start • Documentation
Overview
Sylius Easy CRUD Plugin is an abstraction layer that helps building CRUD interfaces in Sylius e-commerce.
🧩 Define your entire CRUD interface (list, create, edit, show, delete) in a single configureFields() method on a App\Admin\ResourceAdmin class based on Sylius resources — similar to EasyAdminBundle, but integrated with Sylius!
🚀 With this Admin class this plugin generates automatically all CRUD interfaces for you: Grid, Creation/Edition forms, Show page, and preconfigured CRUD Actions. It also provides a rich set of form field types that helps you build forms with minimal code.
✨ Transform Symfony entities / Sylius resources into fully functional admin interfaces in minutes!
class PostAdmin extends AbstractAdmin { yield TabField::new('tab1', 'Tab 1'); yield ColumnField::new('tab1_left') ->setSize(ColumnSizeEnum::WIDE_8_OF_12); yield TranslationField::new('translations') ->addField( Field::new('name') ->setDisabled(false) ->setRequired(true) ) ->onlyOnForms(); yield ColumnField::new('tab1_right') ->setSize(ColumnSizeEnum::WIDE_4_OF_12); yield IconField::new('icon') ->onlyOnForms(); yield CheckboxField::new('enabled'); ... }
What Makes It Easy?
- 🚀 Rapid Development: Generate complete CRUD interfaces in minutes with Symfony Maker commands
- 🎨 Rich Field Types: 18+ specialized fields (Image, WYSIWYG, CodeEditor, Slug, Sortable Collections, and more)
- 🌍 i18n Ready: Built-in translatable content mapped to Sylius Translation system
- 🧩 Highly Extensible: Custom field configurators, actions, and form types
- 😎 Centralized configuration: CRUD configuration in a single Admin class per resource
Why we built this plugin
In our previous Symfony projects we were familiar with EasyAdminBundle and developed several bundles based on it. When we migrated to Sylius, we looked for a fast and efficient way to reuse those bundles, so we tried to integrate the missing parts:
- The EasyAdmin abstraction layer to allow building forms, lists and show pages in a single Admin class.
- Our previous CMS features.
We have used this bundle in production on several projects and decided to share it with the community.
It does not fully comply (yet) with last Sylius guidelines, so please use this plugin with caution.
A duo: Easy CRUD + Happy CMS
Alongside this plugin, we migrated our other EasyAdmin-based bundles — which provided content management (CMS) features — into a separate plugin called Happy CMS. It is an alternative for building CMS features in Sylius.
Installation
1. Install via Composer
composer require agence-adeliom/sylius-easy-crud-plugin composer require --dev symfony/maker-bundle
2. Enable the Bundle
Add the plugin to config/bundles.php:
<?php return [ // ... Adeliom\SyliusEasyCrudPlugin\SyliusEasyCrudPlugin::class => ['all' => true], Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true, 'test' => true], ];
3. Import Configuration
In config/packages/_sylius.yaml:
imports: - { resource: "@SyliusEasyCrudPlugin/config/config.yaml" }
4. Import Routes
In config/routes.yaml:
sylius_easy_crud: resource: "@SyliusEasyCrudPlugin/config/routes.yaml"
5. Install Assets
php bin/console assets:install
Quick Start
Step 1: Generate an Entity
Create a new entity with translation support:
php bin/console make:easy-crud:create-entity Post php bin/console doc:mig:diff php bin/console doc:mig:mig
This generates:
src/Entity/Post.phpsrc/Entity/PostTranslation.phpsrc/Repository/PostRepository.php
Step 2: Generate the CRUD
Create a complete CRUD interface for your entity:
php bin/console make:easy-crud:create-crud Post
This generates:
src/Admin/PostAdmin.php- CRUD configuration class- Updates
config/routes.yaml- Adds admin routes - Updates
config/packages/sylius_resources.yaml- Registers Sylius resource - Updates
src/Menu/AdminMenuListener.php- Adds menu entry
Step 3: Configure Your CRUD
Edit src/Admin/PostAdmin.php:
Configure your fields in the configureFields() or your filters with configureFilters() method.
Step 4: Access Your CRUD
Navigate to your Sylius admin panel and find your new "Posts" menu entry. You now have a fully functional CRUD interface!
Documentation
📚 User Guides
If this plugin helped you, please consider giving it a ⭐ on GitHub!
Made with ❤️ by Adeliom

