PHP code example of colorlibhq / adminlte-symfony

1. Go to this page and download the library: Download colorlibhq/adminlte-symfony 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/ */

    

colorlibhq / adminlte-symfony example snippets


return [
    // ...
    ColorlibHQ\AdminLteBundle\AdminLteBundle::class => ['all' => true],
];

#[Route('/admin', name: 'app_dashboard')]
public function dashboard(): Response
{
    return $this->render('@AdminLte/demo/dashboard.html.twig');
}

public function configureAssets(): Assets
{
    return Assets::new()
        ->addCssFile('https://cdn.jsdelivr.net/npm/[email protected]/dist/css/adminlte.min.css')
        ->addJsFile('https://cdn.jsdelivr.net/npm/[email protected]/dist/js/adminlte.min.js');
}
bash
composer install
composer check   # php-cs-fixer (lint) + phpstan + phpunit