PHP code example of easyadminfriends / easyadmindashboard-bundle

1. Go to this page and download the library: Download easyadminfriends/easyadmindashboard-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

easyadminfriends / easyadmindashboard-bundle example snippets

`bash
#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
    {
		...
    }
...