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

javiereguiluz/easyadmin-bundle

EasyAdmin is a fast, modern admin generator for Symfony. Build beautiful back offices quickly with sensible defaults and powerful customization. Requires PHP 8.0.2+ and Symfony 5.4+; full documentation available on symfony.com.

View on GitHub
Deep Wiki
Context7

The new (and simple) admin generator for Symfony applications.

Frequently asked questions about Easyadmin Bundle
Can I use EasyAdminBundle with Laravel instead of Symfony?
No, EasyAdminBundle is designed exclusively for Symfony applications. It relies on Symfony’s core components like Dependency Injection, Twig, and Doctrine ORM, which aren’t compatible with Laravel’s Eloquent or Blade templating. For Laravel, consider alternatives like Backpack for Laravel or Nova.
What’s the minimum PHP and Symfony version required for EasyAdminBundle 4.x?
EasyAdminBundle 4.x requires **PHP 8.0.2+** and **Symfony 5.4+** (including Symfony 6.x). Older versions (3.x) support Symfony 4.x and PHP 7.2.5+, but 4.x is the actively maintained branch with new features. Always check the [official docs](https://symfony.com/bundles/EasyAdminBundle/master/index.html) for updates.
How do I customize the UI beyond the default styling?
EasyAdminBundle uses Twig templates for rendering, so you can override its default templates by copying them from `vendor/easycorp/easyadminbundle/resources/views/` to your project’s `templates/EasyAdminBundle/` directory. For deeper styling changes, use CSS overrides or leverage Symfony’s asset pipeline. The [demo app](https://github.com/EasyCorp/easyadmin-demo) shows common customizations.
Does EasyAdminBundle support non-Doctrine databases (e.g., Eloquent, custom repositories)?
No, EasyAdminBundle is built for **Doctrine ORM** and assumes Symfony’s entity structure. If you’re using Eloquent (Laravel) or custom repositories, you’d need to create an adapter layer to bridge your data access logic with EasyAdmin’s expected Doctrine entities. This isn’t officially supported and adds complexity.
How do I add custom actions (e.g., bulk exports, API triggers) to EasyAdmin?
You can extend EasyAdmin’s CRUD functionality by defining custom actions in your entity’s admin configuration (YAML/XML/PHP). Use the `actions` key to add buttons, and implement logic via **Event Listeners** or **custom CRUD controllers**. The [documentation](https://symfony.com/bundles/EasyAdminBundle/master/crud.html#custom-actions) provides examples for common use cases like bulk operations or external API calls.
Is EasyAdminBundle secure out of the box, or do I need to configure ACLs?
EasyAdminBundle includes basic security features like CSRF protection and role-based access control (ACL), but you’ll need to configure permissions manually for sensitive data. Use Symfony’s security component to define granular roles (e.g., `ROLE_ADMIN`, `ROLE_SUPER_ADMIN`) in your `security.yaml`. The [security guide](https://symfony.com/bundles/EasyAdminBundle/master/security.html) covers best practices for restricting access.
Can I integrate EasyAdminBundle with existing Symfony bundles (e.g., VichUploader, API Platform)?
Yes, EasyAdminBundle is designed to work alongside other Symfony bundles. For example, you can integrate **VichUploader** for file handling by extending the entity’s admin configuration or using custom actions. With **API Platform**, you might expose EasyAdmin’s CRUD routes via API attributes or create separate admin/API layers. The bundle’s modularity ensures minimal conflicts.
How do I test an EasyAdmin-powered admin panel in PHPUnit?
Test EasyAdmin’s CRUD routes like any Symfony controller: use `client->request()` to simulate GET/POST actions and assert responses. For functional tests, mock dependencies (e.g., Doctrine entities) and verify routes, forms, and redirects. The [Symfony testing docs](https://symfony.com/doc/current/testing.html) and EasyAdmin’s [demo app tests](https://github.com/EasyCorp/easyadmin-demo/tree/master/tests) provide patterns for testing admin panels.
What’s the performance impact of EasyAdminBundle in large-scale applications?
EasyAdminBundle dynamically generates routes and CRUD logic, which adds minimal overhead for small-to-medium datasets. For large-scale apps (e.g., 10K+ entities), benchmark route generation and consider caching strategies like Symfony’s HTTP cache or OPcache. Avoid over-customizing templates/actions, as these can increase complexity. The [demo app](https://github.com/EasyCorp/easyadmin-demo) is a good reference for real-world performance.
Are there alternatives to EasyAdminBundle for Symfony if I need more flexibility?
If you need more control than EasyAdminBundle offers, consider **SonataAdminBundle** (feature-rich but heavier) or **API Platform Admin** (for API-first projects). For lightweight solutions, **Symfony MakerBundle** can generate custom controllers, or you could build a minimal admin panel using Symfony’s UX components. EasyAdmin strikes a balance between speed and customization, but your choice depends on specific needs like ACL complexity or UI requirements.
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.
phalcon/cli-options-parser
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/privacy-filter-classifier
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