mikedevresse/composer-azure-plugin 问题修复 & 功能扩展

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

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

mikedevresse/composer-azure-plugin

最新稳定版本:1.2.0

Composer 安装命令:

composer require mikedevresse/composer-azure-plugin

包简介

Azure Composer plugin

README 文档

README

Composer Azure plugin is an attempt to use Composer with Azure DevOps artifacts, via universal packages.

Install

Composer Azure Plugin requires Composer 2 and PHP8.1 or newer. It should be installed globally.

$ composer global require mikedevresse/composer-azure-plugin

You have to be logged in via the Azure command line interface .

Usage

This plugin has two components. Publishing a composer package to azure and pulling the dependency.

Publishing a package

In the package you want to publish you have to add an azure-publish-registry config to the extra block.

{
    ...
    "extra": {
        "azure-publish-registry": {
            "organization": "dev.azure.com/<my-organization>",
            "project": "<my-project-name>",
            "feed": "<my-feed-name>"
        }
    }
}

This plugin adds a new composer command to easily publish the package. Just run composer azure:publish and it will remove all ignore files (e.g. the vendor folder) and publish the code to azure artifacts.

Use package as dependency

To use a published package add an azure-repositories config to the extra block. There you define which packages are required for the current project. In the required block you then define the requirements as usual. The only downsite is, that you can't use constraints and set a specific version.

{
    "require": {
        "vendor-name/my-package": "1.0.0"
    },
    "extra": {
        "azure-repositories": [
            {
                "organization": "dev.azure.com/<my-organization>",
                "project": "<my-project-name>",
                "feed": "<my-feed-name>",
                "symlink": false,
                "packages": [
                    "vendor-name/my-package"
                ]
            }
        ]
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-11