PHP code example of uran1980 / yii2-code-prettify

1. Go to this page and download the library: Download uran1980/yii2-code-prettify 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/ */

    

uran1980 / yii2-code-prettify example snippets




namespace frontend\assets;

class AppAsset extends \yii\web\AssetBundle
{
    ...
    public $depends = [
        ...
        'uran1980\yii\assets\codePrettify\CodePrettifyAsset',
    ];
}
...\frontend\assets\AppAsset.php