opb/dev-symlinks
最新稳定版本:v0.1
Composer 安装命令:
composer require opb/dev-symlinks
包简介
Package to change symlink to true or false depending on env
README 文档
README
Add the following to the extras section of your project's composer.json:
"extra": { "dev-symlink-envs": [ "dev", "development" ] }
The extras section itself is included for clarity.
This will go through any configured repositories in your composer.json of type path and if the current environment, as defined by the APP_ENV environment variable, is in the list defined, then the composer config will be change to "symlink": true.
For example:
{
"repositories": [
{
"type": "path",
"url": "../path/to/local/package",
"options": {
"symlink": false
}
}
],
"require": {
"vendor/package": "*"
},
"extra": {
"dev-symlink-envs": [
"dev",
"development"
]
}
}
In this case, whenever APP_ENV is either dev or development then the symlink option for the local package will be set to true.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-17