承接 malukenho/mcbumpface 相关项目开发

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

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

malukenho/mcbumpface

最新稳定版本:1.2.0

Composer 安装命令:

composer require malukenho/mcbumpface

包简介

Bumping into packages

README 文档

README

A simple tool to sync composer.lock and composer.json versions, resulting in a faster package dependencies resolution.

Installing

composer require --dev malukenho/mcbumpface

How it works?

By looking at the composer.lock file which is (re)generated during composer install or composer update we can replace the required version specified on composer.json file by the installed version specified on composer.lock file.

Example

composer.json (before)
{
    "require": {
        "malukenho/docheader": "^1.0.1"
    }
}

After a composer update, composer have installed version ^1.0.4, so my composer.json will looks like the following:

composer.json (after)
{
    "require": {
        "malukenho/docheader": "^1.0.4"
    }
}

Configuration (optional)

By adding an extra configuration to the projects composer.json, you can configure different behavior of the version bumping. The configuration can be added like this:

{
    "extra": {
        "mc-bumpface": {
            "stripVersionPrefixes": false,
            "keepVersionConstraintPrefix": false
        }
    }
}

The following configurations are available:

stripVersionPrefixes (default: false)

By setting this parameter to true, mcbumpface will strip the v prefix from versions (in case they are tagged like this).

keepVersionConstraintPrefix (default: false)

By setting this parameter to true, mcbumpface will NOT replace the version constraint prefix.

Having a required version ~2.0 and installed 2.0.20 will replace the version constraint to ^2.0.20.

统计信息

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

GitHub 信息

  • Stars: 115
  • Watchers: 5
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-20