PHP code example of lightgear / theme

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

    

lightgear / theme example snippets


'Lightgear\Asset\ThemeServiceProvider'

'Theme' => 'Lightgear\Theme\Facades\Theme'


themes
  |__mytheme
     |__css/
     |__less/
     |__js/
     |__views/
     |__info.php



return array(
    'name' => 'My theme',
    'description' => 'A good desc',
    'author' => 'Donato Rotunno',
    'version' => 1.0,
    'styles' => array(
        'paths' => array(
            'less',
            'css'
        ),
        'package' => 'mytheme',
        'group' => 'frontend' // optional asset group
    ),
    'scripts' => array(
        'paths' => array(
            'js',
        ),
        'package' => 'mytheme',
        'group' => 'frontend' // optional asset group
    ),
);

bash
php artisan package:install lightgear/theme