Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metabolism/package-actions
Composer plugin : allow file and folder actions uppon package installation or update
https://github.com/metabolism/package-actions
actions composer composer-plugin
Last synced: about 2 months ago
JSON representation
Composer plugin : allow file and folder actions uppon package installation or update
- Host: GitHub
- URL: https://github.com/metabolism/package-actions
- Owner: metabolism
- Created: 2018-02-21T07:56:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T17:27:24.000Z (almost 2 years ago)
- Last Synced: 2024-10-27T01:41:38.375Z (2 months ago)
- Topics: actions, composer, composer-plugin
- Language: PHP
- Size: 19.5 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Package actions
add copy/create/remove/rename/symlink per package actionsavailable for both `post-package-install` and `post-package-update`
## Installation
composer require metabolism/package-actions
## Example
"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"]
}
}
}
}### Create
destination : permissions
`destination` is relative to the composer.json file
`permissions` use umask, only 3 last digits### Copy / Symlink
source : destination
`source` is relative to the package folder`destination` is relative to the composer.json file
### Rename
source : destination
`source` and `destination` are relative to the composer.json file### Remove
[destination]
`destination` is relative to the composer.json file