PHP code example of antonyz89 / yii2-material-design-lite

1. Go to this page and download the library: Download antonyz89/yii2-material-design-lite 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/ */

    

antonyz89 / yii2-material-design-lite example snippets


# common/config/main.php

[
    'components' => [
        'assetManager' => [
            //'forceCopy' => true,
            'converter' => [
                //'forceConvert' => true,
                'commands' => [
                    'scss' => ['css', 'sass {from} {to} --source-map'],
                ]
            ],
            'bundles' => [
                BootstrapAsset::class => ['css' => []],
                DialogBootstrapAsset::class => ['js' => [], 'css' => []]
            ]
        ]
    ] 
];

use antonyz89\mdl\MaterialAsset;
use yii\web\YiiAsset;

class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';

    public $css = [];
    public $js = [];
    public $depends = [
        // ...
        YiiAsset::class,
        MaterialAsset::class
    ];
}

php composer.phar