PHP code example of pdima88 / phpassets

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

    

pdima88 / phpassets example snippets


use pdima88\phpassets\Assets;
...
Assets::add('bootstrap');    // dd('js/script.js'); // 

Assets::getCss(); // put this inside <head> ... </head> to output styles tags
Assets::getJs(); // put this in the end of page before </body> to output js script tags