metabolism/package-actions 问题修复 & 功能扩展

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

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

metabolism/package-actions

最新稳定版本:1.2.6

Composer 安装命令:

composer require metabolism/package-actions

包简介

Allow file and folder actions upon package installation or update

README 文档

README

add copy/create/remove/rename/symlink per package actions

available for both post-package-install and post-package-update

Installation

composer require metabolism/package-actions

Example

"extra": {
    "post-package-install": {
        "create": {
            "vendor/package-name": {
                "public/uploads": 777,
                "public/download": 655
        },
        "copy": {
            "vendor/package-name": {
                "folder/file.php": "public/myfile.php",
            }
        },
        "symlink": {
            "vendor/package-name": {
                "folder/file.php": "public/myfile.php",
            }
        }
        "rename": {
            "vendor/package-name": {
                "public/myfile.php": "public/file.php",
            }
        }
        "remove": {
            "vendor/package-name": ["public/myfile.php"]
            }
        }
    }
}

Create

 destination : permissions

destination is relative to the composer.json file

permissions use umask, only 3 last digits

Copy / Symlink

 source : destination

source is relative to the package folder

destination is relative to the composer.json file

Rename

 source : destination

source and destination are relative to the composer.json file

Remove

 [destination]

destination is relative to the composer.json file

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2018-12-21