PHP code example of phphleb / adminpan

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

    

phphleb / adminpan example snippets


Route::get('/{lang}/panel/page/default')
    ->page('adminpan', ExamplePanelController::class)
    ->name('adminpan.default');

return [
    'design' => 'base', // base|light... default `base`
    'breadcrumbs' => 'on', // on|off default 'on'
    'section' => [
        [
            'name' => [
                'ru' => 'Главное меню',
                'en' => 'Main menu'
            ],
            'section' => [
                [
                    'route' => 'adminpan.default',
                    'name' => [
                        'en' => 'Test page',
                        'ru' => 'Тестовая страница',
                    ],
                ],
            ],
        ],
    ]
];
bash
php console phphleb/adminpan add