PHP code example of lmendes / template

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

    

lmendes / template example snippets


return [
    'name'  => 'My App',        // App name shown in sidebar
    'theme' => 'light',         // 'light' | 'dark' | 'auto'
    'color' => '#6366f1',       // Brand color (CSS hex)

    'auth' => [
        'register_enabled'     => true,
        'redirect_after_login' => '/dashboard',
    ],

    'menu' => [
        ['label' => 'Dashboard', 'icon' => 'home',  'route' => 'template.dashboard'],
        ['label' => 'Profile',   'icon' => 'user',  'route' => 'template.profile'],
    ],
];

template_config('name')        // Get config value
template_menu()                // Get sidebar menu array
template_theme()               // 'light' | 'dark' | 'auto'
initials('Jean Dupont')        // 'JD'
money(1500.50)                 // '1 500,50 €'
bash
php artisan template:install
bash
php artisan vendor:publish --tag=template-views
bash
php artisan template:install --force          # Overwrite existing files
php artisan template:install --no-migration   # Skip migrations