dev-master
9999999-dev https://github.com/kporras07/composer-symlinksComposer script handling symlinks
MIT
The Requires
The Development Requires
by Kevin Porras
composer script symlink
Wallogit.com
2017 © Pedro Peláez
Composer script handling symlinks
Composer script handling creation of symlinks inside your composer project., (*2)
Note: Symlinks will become files copy when composer is run with --no-dev, (*3)
Installation can be done as usually using composer.
composer require kporras07/composer-symlinks, (*4)
Add the following in your root composer.json file:, (*5)
"require": {
"kporras07/composer-symlinks": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks"
],
"post-update-cmd": [
"Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks"
]
},
"extra": {
"symlinks": {
"components": "web/components"
}
}
After running either composer install or composer update, components folder will be accessible from your web folder web/components/., (*6)
But of course, you have to be careful when making symlinks to a folder which is publicly accessible., (*7)
Composer script handling symlinks
MIT
composer script symlink