opb/dev-symlinks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固