Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Easyadmin Bundle

Easyadmin Bundle Laravel Package

easycorp/easyadmin-bundle

View on GitHub
Deep Wiki
Context7

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.

Frequently asked questions about Easyadmin Bundle
Can EasyAdminBundle be used in a Laravel project, or is it strictly for Symfony?
EasyAdminBundle is designed for Symfony, but Laravel developers can integrate it via Symfony’s microkernel or by embedding Symfony components. However, this requires significant setup (e.g., Laravel Symfony Bridge) and isn’t officially supported. For Laravel, consider alternatives like Backpack for Laravel or FilamentPHP, which are natively optimized for Laravel’s Eloquent and Blade.
What’s the quickest way to generate a CRUD interface for an existing Doctrine entity?
Run `php bin/console make:admin:crud` and specify your entity class. EasyAdminBundle auto-generates CRUD controllers, forms, and Twig templates for the entity’s fields, relationships, and validation rules. For custom fields, extend the `CrudController` or use Symfony events. The process is fully documented in the [official guide](https://symfony.com/bundles/EasyAdminBundle/current/index.html).
How do I customize the default Bootstrap 5 UI or replace it entirely?
EasyAdminBundle uses Twig templates and Symfony UX components for the UI. Override templates by copying them from `vendor/easycorp/easyadmin-bundle/resources/templates/` to your project’s `templates/EasyAdminBundle/` directory. For a full UI rewrite, replace the Twig components or use Symfony’s asset management (e.g., Webpack Encore) to inject custom CSS/JS. The bundle supports frontend-agnostic customization.
Does EasyAdminBundle support role-based permissions or field-level access control?
Yes, it integrates with Symfony’s security system for role-based access control (RBAC). Configure permissions in `config/packages/easy_admin.yaml` using `access_control` rules. For field-level access, use Symfony’s voter system or override the `CrudController` to filter fields dynamically. The bundle also supports per-action permissions (e.g., restrict `edit` to specific roles).
What Symfony and PHP versions does EasyAdminBundle support, and how do I upgrade?
The latest version supports Symfony 6.4+, 7.x, and 8.x, with PHP 8.2+ required. Upgrades between major versions (e.g., 4.x → 5.x) may require adjustments due to Symfony’s breaking changes. Always check the [changelog](https://github.com/EasyCorp/EasyAdminBundle/blob/5.x/CHANGELOG.md) and follow the upgrade guide. Minor updates are typically seamless via Composer.
How does EasyAdminBundle handle large datasets or complex queries?
By default, it uses Doctrine’s pagination and filtering. For large datasets, optimize with custom DQL queries in the `CrudController` or override the `createQueryBuilder` method. Enable lazy-loading for relationships and adjust batch sizes in `config/packages/easy_admin.yaml`. For advanced use cases, extend the `CrudController` or use Symfony’s data fixtures for testing.
Can I add custom actions (e.g., bulk export, soft delete) to EasyAdmin’s CRUD?
Yes, custom actions are supported via the `CrudController`. Define actions in the `configureActions` method and implement logic in the `configureActionButtons` method. For bulk operations, use Symfony’s `CollectionType` forms or override the `createBulkActionButton` method. The bundle provides hooks for pre/post-action events to integrate with your business logic.
Is EasyAdminBundle secure against common web vulnerabilities like XSS or CSRF?
Yes, it mitigates risks through Symfony’s built-in protections (e.g., CSRF tokens, Twig auto-escaping). Recent versions (5.0.6+) include fixes for XSS and path traversal vulnerabilities, verified via AI-assisted audits. For custom fields/actions, ensure input sanitization and use Symfony’s security components (e.g., `Voter` interfaces). Always update to the latest version for patches.
How do I deploy EasyAdminBundle in a microservice architecture or headless setup?
EasyAdminBundle is designed for monolithic Symfony apps, but you can expose its API endpoints (e.g., CRUD actions) via Symfony’s `api_platform` or `mercure` for real-time updates. For microservices, consider decoupling the admin panel into a separate Symfony app or using a headless CMS approach with EasyAdmin as a management layer. Asset management (CSS/JS) should use Symfony’s `AssetMapper` for dynamic paths.
What are the best alternatives to EasyAdminBundle for Laravel or non-Doctrine Symfony projects?
For Laravel, use **Backpack for Laravel** (Eloquent-first) or **FilamentPHP** (modern, Blade-based). For non-Doctrine Symfony, explore **API Platform** (GraphQL/REST) or **SonataAdminBundle** (more flexible but complex). If you’re using Eloquent, **EasyAdminBundle isn’t compatible**, but you could abstract Doctrine with a custom data layer—though this adds maintenance overhead.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony