vanasari / composer-symlink
创建符号链接,可以在composer的脚本部分使用
1.2.0
2020-02-16 20:52 UTC
Requires
- php: ^7.2
- symfony/filesystem: *
Requires (Dev)
- composer/composer: ^1.9
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2024-09-29 05:48:44 UTC
README
composer-symlink
创建符号链接,可以在composer的脚本部分使用
使用composer安装
composer require vansari/composer-symlink
用法
所有路径都必须相对于composer.json文件。
相对路径必须按“rel”属性作为数组分组
绝对路径必须按“abs”属性名作为数组分组
您的Composer JSON
{
"require": {
"vansari/composer-symlink": "^1.0"
},
"scripts": {
"post-install-cmd": "tools\\Symlinker::createSymlinks",
"post-update-cmd: "tools\\Symlinker::updateSymlinks"
},
"extra": {
"symlinks": {
"origin": {
"rel": [
"target/subdir"
]
},
"origin2": {
"rel": [
"target1/subdir",
"target2/subdir"
]
},
"file.php": {
"abs":[
"target3/symlinked.php"
]
}
}
}
}