metabolism/package-actions
最新稳定版本:1.2.6
Composer 安装命令:
composer require metabolism/package-actions
包简介
Allow file and folder actions upon package installation or update
README 文档
README
add copy/create/remove/rename/symlink per package actions
available 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
统计信息
- 总下载量: 5.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0
- 更新时间: 2026-01-04