PHP code example of mnsami / composer-custom-directory-installer
1. Go to this page and download the library: Download mnsami/composer-custom-directory-installer 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/ */
mnsami / composer-custom-directory-installer example snippets
json
"extra": {
"installer-paths": {
"./customlibs/{$vendor}/db/{$name}": ["doctrine/orm"],
"./custom/{$type}/{$vendor}/{$name}": ["acme/*"]
}
}
json
"installer-paths": {
"./acme-libs/{$name}/": ["acme/*"]
}
json
"extra": {
"installer-paths": {
"/tools/{$name}/": ["vendor/some-cli-tool"]
}
}