add copy/create/remove/rename/symlink per package actions
available for both post-package-install
and post-package-update
composer require metabolism/package-actions
"extra": {
"post-package-install": {
"create": {
"vendor/package-name": {
"public/uploads": 777,
"public/download": 655
},
"copy": {
"vendor/package-name": {
"folder/file.php": "public/myfile.php",
}
},
"symlink": {
"vendor/package-name": {
"folder/file.php": "public/myfile.php",
}
}
"rename": {
"vendor/package-name": {
"public/myfile.php": "public/file.php",
}
}
"remove": {
"vendor/package-name": ["public/myfile.php"]
}
}
}
}
destination : permissions
destination
is relative to the composer.json file
permissions
use umask, only 3 last digits
source : destination
source
is relative to the package folder
destination
is relative to the composer.json file
source : destination
source
and destination
are relative to the composer.json file
[destination]
destination
is relative to the composer.json file