2017 © Pedro Peláez
 

composer-plugin mcbumpface

Bumping into packages

image

malukenho/mcbumpface

Bumping into packages

  • Thursday, June 21, 2018
  • by malukenho
  • Repository
  • 1 Watchers
  • 7 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

:fallen_leaf: McBumpface

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

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., (*2)

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:, (*3)

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:, (*4)

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

The following configurations are available:, (*5)

stripVersionPrefixes (default: false)

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

keepVersionConstraintPrefix (default: false)

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

Having a required version ~2.0 and installed 2.0.20 will replace the version constraint to ^2.0.20., (*8)

The Versions

21/06 2018

dev-master

9999999-dev

Bumping into packages

  Sources   Download

MIT

The Requires

  • php ^7.1
  • composer-plugin-api ^1.0.0

 

The Development Requires

21/06 2018

0.1.0

0.1.0.0

Bumping into packages

  Sources   Download

MIT

The Requires

  • php ^7.1
  • composer-plugin-api ^1.0.0

 

The Development Requires