定制 opb/dev-symlinks 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-17