定制 gasparonik/composer-symlinks 二次开发

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

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

gasparonik/composer-symlinks

最新稳定版本:1.4.1

Composer 安装命令:

composer require gasparonik/composer-symlinks

包简介

Create relative symlinks based on getcwd() and relative data

README 文档

README

Its provide a simple Composer script to symlink paths.

Installation

To install the latest stable version of this component, open a console and execute the following command:

$ composer require gasparonik/composer-symlinks

Usage

1. Define symlinks

Create the symlinks definition adding a somework/composer-symlinks section inside the extra section of the composer.json file.

Set skip-missing-target to true if we should not throw exception if target path doesn't exists
Set absolute-path to true if you want to create realpath symlinks
Set throw-exception to false if you dont want to break creating on some error while check symlinks
Set force-create to force unlink link if something already exists on link path

You can set personal configs for any symlink.
For personal configs link must be defined

{
    "extra": {
        "somework/composer-symlinks": {
            "symlinks": {
                "common/upload": "web/upload",
                "common/static/dest": {
                    "link": "web/dest",
                    "skip-missing-target": false,
                    "absolute-path": true,
                    "throw-exception": false
                },
                "common/web": [
                    "web1",
                    "web2",
                    "web3"
                ],
                "common/local": {
                    "link": [
                        "web1/local",
                        "web2/local",
                        "web3/local"
                    ]
                }
            },
            "force-create": false,
            "skip-missing-target": false,
            "absolute-path": false,
            "throw-exception": true
        }
    }
}

3. Execute composer

DO NOT use --no-plugins for composer install or update

License

This component is under the MIT license. See the complete license in the [LICENSE] file.

Reporting an issue or a feature request

Issues and feature requests are tracked in the [Github issue tracker].

统计信息

  • 总下载量: 1.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固