easyadminfriends/easyadmindashboard-bundle
This bundle is an extension for the Easycorp EasyAdminBundle (the simple Symfony backends administration bundle). It allows you to create easily a user-friendly homepage with some counters, like a dashboard.

This bundle requires:
* PHP 8.4 or higher
* Symfony 6.4 or higher
* EasyAdmin 4.2x
Use composer to require the latest stable version.
$ composer require easyadminfriends/easyadmindashboard-bundle:3.x
Generate dashboard items inside Easyadmin Dashboard Controller
#App\Controller\Admin\DashboardController
...
use EasyAdminFriends\EasyAdminDashboardBundle\Service\EasyAdminDashboard;
class DashboardController extends AbstractDashboardController
{
public function __construct(private EasyAdminDashboard $easyAdminDashboard){}
public function index(): Response
{
return $this->render('@EasyAdminDashboard/Default/index.html.twig', [
'dashboard' => $this->easyAdminDashboard->getDashboard()
]);
}
public function configureCrud(): Crud
{
...
}
...
documentation in progress full example:
#config/packages/easy_admin_dashboard.yaml
easy_admin_dashboard:
title: "Welcome to backend"
blocks:
Bloc1:
label: Products
size: 12
css_class: primary
permissions: ['ROLE_USER']
hierarchy: false
route: app #not compatible with hierarchy = false
items:
Product:
label: "Active products in catalog"
size: 3
css_class: success text-dark
class: App\Entity\Product
controller: App\Controller\Admin\ProductCrudController
icon: shopping-cart
link_label: "Product list"
query: MyCustomQuery
ProductCategory:
label: "Categories"
size: 3
css_class: green
class: App\Entity\Category
controller: App\Controller\Admin\ProductCategoryCrudController
icon: list-ul
link_label: "Category list"
permissions: ['ROLE_ADMIN']
dql_filter: "entity.is_active = 1"
showCount: false
Contributions are more than welcome. Fork the project, and submit a PR when you're done.
Remaining todos include:
How can I help you explore Laravel packages today?