PHP code example of tacoberu / composer-assets
1. Go to this page and download the library: Download tacoberu/composer-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/ */
tacoberu / composer-assets example snippets
json
{
"/composer-assets": "*",
},
"scripts": {
"post-autoload-dump": [
"Taco\\ComposerScripts\\CopyAssetsToPublic::process"
]
},
"config": {
"www-dir": "public",
"assets-definition": "scripts/assets.json"
}
}