- Can I use this package with Laravel instead of Symfony? The description mentions Symfony EasyAdmin.
- No, this package is designed specifically for Symfony and EasyAdmin. It won’t work natively with Laravel, as it relies on Symfony’s form system, Doctrine ORM, and EasyAdmin’s CRUD architecture. For Laravel, consider alternatives like Spatie’s Laravel Media Library or custom TinyMCE/CKEditor integrations.
- How do I install this bundle in a Symfony 6.4 project?
- First, add the GitHub recipes endpoint to your `composer.json` under `extra.symfony.endpoint`, then run `composer require agence-adeliom/easy-gutenberg-bundle`. Ensure your project uses Symfony Flex and PHP 8.2+. Follow the README’s installation steps to configure the bundle and add the form theme in your CRUD controller.
- Will this bundle work with Laravel’s Inertia.js or Livewire for frontend reactivity?
- No, this bundle is tightly coupled with Symfony’s EasyAdmin and Twig templating. It relies on Symfony’s form system and asset pipeline, so it won’t integrate directly with Laravel’s Inertia.js or Livewire. For Laravel, explore packages like FilamentPHP or custom editor solutions that support these frontend frameworks.
- What Laravel versions does this package support? The description mentions Symfony.
- This package **does not support Laravel**—it’s built for Symfony 5.4–7.x. If you’re using Laravel, you’ll need a different solution, such as a custom Gutenberg-like editor built with Alpine.js, Livewire, or a headless CMS like Strapi paired with Laravel. Check Laravel-specific packages like `spatie/laravel-medialibrary` for alternatives.
- How do I create custom Gutenberg blocks for my Symfony EasyAdmin forms?
- Use the `make:gutenberg` console command to scaffold a new block class. Extend `AbstractBlockType` and define your form fields using Symfony’s `FormBuilderInterface`. For example, add a `TextType` field for a two-column layout. The block will then appear in the Gutenberg editor within your EasyAdmin CRUD forms.
- Does this bundle support Laravel’s Eloquent ORM for storing Gutenberg content?
- No, this bundle is designed for Symfony’s Doctrine ORM. It stores Gutenberg content as JSON fields in Doctrine entities. If you’re using Laravel, you’d need to manually handle JSON serialization for block-based content in Eloquent models, or use a package like `spatie/laravel-activitylog` for structured data storage.
- What are the performance implications of adding the Gutenberg editor to my Symfony admin panel?
- The Gutenberg editor adds a ~500KB JavaScript bundle, which may increase build times and page load performance. Test in a staging environment to assess impact, especially if your admin panel has many users. Consider lazy-loading the editor or using a lighter alternative like TinyMCE if performance is critical.
- Is this bundle actively maintained? The repository appears archived.
- Yes, the package is archived, meaning no new features will be added, but bug fixes may still occur for the `3.x` branch (Symfony 6.4/7.x). For long-term projects, evaluate alternatives like Symfony UX Turbo with a custom editor or a maintained package like `easycorp/easyadmin-bundle` with TinyMCE integration.
- Can I use this with Laravel’s Sanctum or Passport for API-based content management?
- No, this bundle is frontend-focused for Symfony EasyAdmin and doesn’t integrate with Laravel’s Sanctum or Passport. For API-based content management in Laravel, consider headless CMS solutions like Strapi or direct database access via Eloquent, paired with a custom frontend editor like Quill.js or TinyMCE.
- How do I migrate existing TinyMCE or CKEditor content to Gutenberg blocks?
- You’ll need to manually parse existing HTML content and convert it into Gutenberg’s block-based JSON format. Use Symfony’s serializer component or a custom script to transform legacy content. Test thoroughly, as block structures differ significantly from traditional WYSIWYG editors. Backup your data before migration.