承接 sreichel/composer-plugin-file-copy 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sreichel/composer-plugin-file-copy

最新稳定版本:v1.2.0

Composer 安装命令:

composer require sreichel/composer-plugin-file-copy

包简介

Composer Plugin Mass Files Copy

README 文档

README

This is a very simple Composer plugin working on the post-install-cmd and post-update-cmd events for copying from a source path to a distination folder.

I created this to avoid copying manualy the bootstrap less files into a temporary folder and overriding the variables.less for generating a custom bootstrap.css file using the less filter from the symfony/assetic-bundle.

Installation / Usage

  1. In your composer.json project's file add the requirements

    composer require sreichel/composer-plugin-file-copy
    {
        "require": {
            "sreichel/composer-plugin-file-copy": "^1.0.0"
        }
    }
  2. In your composer.json project's file add the config in the extra element

    composer config --json --merge extra.file-copy '[{"source": "vendor/dir", "target": "lib/vendor", "debug": true}]'
    {
        "extra": {
            "file-copy" : [
                {
                    "source": "vendor/dir",
                    "target": "lib/vendor",
                    "debug": true
                }
            ]
        }
    }

    or

    {
        "extra": {
            "file-copy" : [
                {
                    "source": "vendor/dir",
                    "target": "lib/vendor",
                    "debug": true
                }, {
                    "source": "src/Some/Bundle/less/bootstrap/*.less",
                    "target": "var/less/bootstrap"
                }, {
                    "source": "/home/username/Documents/*.{js,css}",
                    "target": "var/test"
                }
            ]
        }
    }

    Note: The destination element must be a folder. if the destination folder does not exists, it is recursively created using mkdir($destination, 0755, true).

    Note: If the destination folder is not an absolute path, the relative path is calculated using the vendorDir path ($project_path = \realpath($this->composer->getConfig()->get('vendor-dir').'/../').'/';)

    Note: The source element is evaluated using the php function \glob($source, GLOB_MARK) and a recursive copy is made for every result of this function into the destination folder

Requirements

PHP 7.4 or above

Authors

Abdelkadeur Seifeddine Salah - seif.salah@gmail.com - http://sasedev.net

License

Composer is licensed under the MIT License - see the LICENSE file for details

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固