PHPackages                             spartaksun/composer-bump-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. spartaksun/composer-bump-plugin

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

spartaksun/composer-bump-plugin
===============================

Composer plugin for incremention a package version.

0.1.5(6y ago)011MITPHPPHP &gt;=7.1

Since Aug 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/spartaksun/composer-bump-plugin)[ Packagist](https://packagist.org/packages/spartaksun/composer-bump-plugin)[ RSS](/packages/spartaksun-composer-bump-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Bump plugin
===========

[](#bump-plugin)

[![Build Status](https://camo.githubusercontent.com/419be48bd5cfe0ed057006521c7fb6779c4e2d73686fd7c6867effb2d6329167/68747470733a2f2f7472617669732d63692e6f72672f7370617274616b73756e2f636f6d706f7365722d62756d702d706c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/spartaksun/composer-bump-plugin)

Install
-------

[](#install)

```
composer require-dev spartaksun/composer-bump-plugin
```

Usage
-----

[](#usage)

```
composer bump
```

After plugin package installed you will be able to call `composer bump` command. Without any additional arguments it will increment a patch part of version mentioned in composer.json. Command will also create a backup copy of `composer.json` in `composer.json-backup` file.

#### Increment patch part of a version

[](#increment-patch-part-of-a-version)

```
composer bump patch
```

For example: 1.0.3 =&gt; 1.0.4

#### Increment minor part of a version and reset patch

[](#increment-minor-part-of-a-version-and-reset-patch)

```
composer bump minor
```

For example: 1.0.3 =&gt; 1.1.0

#### Increment major part of a version and reset patch and minor

[](#increment-major-part-of-a-version-and-reset-patch-and-minor)

```
composer bump major
```

For example: 1.17.34 =&gt; 2.0.0

#### Change default indentation in composer.json

[](#change-default-indentation-in-composerjson)

```
composer bump -i 4
```

This command will change indentation in composer.json to 4 spaces/tabs

Nex command will increment minor, set indentation to 2 and disable creating of backup file.

```
composer bump minor -i 2 no-backup
```

Callbacks
---------

[](#callbacks)

You may optionally specify callbacks scripts in your `composer.json`:

```
{
  "scripts": {
     "pre-bump": "./my_script.sh",
     "post-bump": "bin/console post:bump"
   }
}
```

`pre-bump` script will be called before incrementing a version with argument `--old-version`.

`post-bump` script will be called after version is incremented with arguments `--old-version` and `--new-version` added to your script.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/065df9e5ff6cedd80cf8a49ca639578e8b9386b40841a1f11c5c63468620d4e0?d=identicon)[spartaksun](/maintainers/spartaksun)

---

Top Contributors

[![spartaksun](https://avatars.githubusercontent.com/u/6684190?v=4)](https://github.com/spartaksun "spartaksun (22 commits)")

---

Tags

plugincomposersemverversionbump

### Embed Badge

![Health badge](/badges/spartaksun-composer-bump-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/spartaksun-composer-bump-plugin/health.svg)](https://phpackages.com/packages/spartaksun-composer-bump-plugin)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[sllh/composer-versions-check

Checks if packages are up to date to last major versions after update

2352.4M16](/packages/sllh-composer-versions-check)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

525.5M69](/packages/automattic-jetpack-autoloader)[veewee/composer-run-parallel

Run composer tasks in parallel

91748.2k13](/packages/veewee-composer-run-parallel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
