PHP code example of nanjingboy / assets

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

    

nanjingboy / assets example snippets



return array(
    'path' => array(
        'serverRoot' => string,
        'javascripts' => string, // relative to serverRoot path, default is the serverRoot path
        'stylesheets' => string, // relative to serverRoot path, default is the serverRoot path
        'images' => string, // relative to serverRoot path, default is the serverRoot path
        'fonts' => string // relative to serverRoot path, default is the serverRoot path
    ),
    'precompile' => array() // the file's extension must be js or css, and it's relative to root javascripts(stylesheets) path
);


ts\Config::init($configFilePath);