PHPackages                             talevskiigor/composer-bump - 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. talevskiigor/composer-bump

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

talevskiigor/composer-bump
==========================

Laravel artisan command to increment composer.json version.

1.0.8(10y ago)1870.9k—4.5%2[1 PRs](https://github.com/talevskiigor/composer-bump/pulls)2MITPHPPHP &gt;=5.5.9

Since Mar 2Pushed 5y ago2 watchersCompare

[ Source](https://github.com/talevskiigor/composer-bump)[ Packagist](https://packagist.org/packages/talevskiigor/composer-bump)[ RSS](/packages/talevskiigor-composer-bump/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (2)

[![Build Status](https://camo.githubusercontent.com/c59043e0b28eab034f19dabc49c9222c43e3fbe5e0c6bc2837a5c0086132a211/68747470733a2f2f7472617669732d63692e6f72672f6c61726176656c2f6672616d65776f726b2e737667)](https://travis-ci.org/talevskiigor/composer-bump)[![Total Downloads](https://camo.githubusercontent.com/a2114544285f609afad747d1176109a45e15c27caecf8ef0d4cb2796ceb36f6f/68747470733a2f2f706f7365722e707567782e6f72672f74616c6576736b6969676f722f636f6d706f7365722d62756d702f642f746f74616c2e737667)](https://packagist.org/packages/talevskiigor/composer-bump)[![Latest Stable Version](https://camo.githubusercontent.com/4cd36008ac0878719b4a534b6d375c3c31baab9d8bd59cd5f18e72ae590de728/68747470733a2f2f706f7365722e707567782e6f72672f74616c6576736b6969676f722f636f6d706f7365722d62756d702f762f737461626c652e737667)](https://packagist.org/packages/talevskiigor/composer-bump)[![Latest Unstable Version](https://camo.githubusercontent.com/d31df27c783e5f8f68ba584e6bc1455614d66cd9653f761c88f0548e06c99395/68747470733a2f2f706f7365722e707567782e6f72672f74616c6576736b6969676f722f636f6d706f7365722d62756d702f762f756e737461626c652e737667)](https://packagist.org/packages/talevskiigor/composer-bump)[![License](https://camo.githubusercontent.com/8b3b93f682d35ea220e950372873eaf5e84f5ba33b8cff27711d8ccd55e31957/68747470733a2f2f706f7365722e707567782e6f72672f74616c6576736b6969676f722f636f6d706f7365722d62756d702f6c6963656e73652e737667)](https://packagist.org/packages/talevskiigor/composer-bump)

Description
===========

[](#description)

Laravel Bump is a package that allows you to easy change your version of your application or package in composer.json file through an Artisan command.

Pretend you have an application or package that you would like to ensure has the right version information in composer.json, you can run `php artisan bump` to get automatically increase version information.

### Example output

[](#example-output)

```
unknown@Dell-Studio-1747:~/Code/ComposerBump$ php artisan bump
Bump from: 0.0.1 to 0.0.2
unknown@Dell-Studio-1747:~/Code/ComposerBump$

```

Also has nice Facade to be used in about page or similar where you need to show your application or package version to the customer.

For more information about versioning please visit

Given a version number MAJOR.MINOR.PATCH, increment the:

- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards-compatible manner, and
- PATCH version when you make backwards-compatible bug fixes.

Usage
=====

[](#usage)

### List of all commands:

[](#list-of-all-commands)

`php artisan bump:patch` Increments PATCH version (major.minor.PATCH =&gt; verison 0.0.1)

Example output: `Bump from: 0.0.1 to 0.0.2`

`php artisan bump:minor` Bump MINOR version (major.MINOR.patch =&gt; verison 0.1.0)

Example output: `Bump from: 0.0.2 to 0.1.0`

`php artisan bump:major` Bump MAJOR version (MAJOR.minor.patch =&gt; verison 1.0.0)

Example output: `Bump from: 0.1.0 to 1.0.0`

### Using Facade support:

[](#using-facade-support)

In your controller you can easy get and return version of your application or package

```
`return ComposerBump::getVersion();`

```

Install
-------

[](#install)

### Step 1: Install through Composer

[](#step-1-install-through-composer)

```
composer require talevskiigor/composer-bump

```

### Step 2: Update `config/app.php` and insert the folowing line in Service Provider

[](#step-2-update-configappphp-and-insert-the-folowing-line-in-service-provider)

```
Talevskiigor\ComposerBump\ComposerBumpServiceProvider::class,

```

### Step 3 (optional): Add Facade support

[](#step-3-optional-add--facade-support)

```
'ComposerBump'=>Talevskiigor\ComposerBump\Facades\ComposerBump::class,

```

If you want to use this package for only local development, you don't need to update `config/app.php`. Instead, you can update provider `app/Providers/AppServiceProvider.php`, for example:

```
public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register('Talevskiigor\ComposerBump\ComposerBumpServiceProvider');
    }
}

```

### Step 4: Run the new Artisan Commands

[](#step-4-run-the-new-artisan-commands)

```
`php artisan bump` - this is alias of `bump:patch`

```

Nice to know
------------

[](#nice-to-know)

Package will make backup copy of you composer.json file on each use, so you can easy do undo on changes, simple use undo command as:

```
`php artisan bump:undo`

```

Example output:

```
!!! WARNING !!!!!! WARNING !!!!!! WARNING !!!
    This will replace content of: composer.json file with content from file: composer.json-backup   !!!

 Are you suere? [y|N] (yes/no) [no]:
 > yes

Restored file: composer.json-backup into file: composer.json

unknown@Dell-Studio-1747:~/Code/ComposerBump$

```

Contributing
------------

[](#contributing)

Add unit tests for any new or changed functionality. Lint and test your code using [PHPUnit](https://phpunit.de/).

1. Fork it
2. Switch to `develop` branch (`git checkout develop`)
3. Create your feature branch (`git checkout -b my-new-feature`)
4. Commit your changes (`git commit -am 'Add some feature'`)
5. Push to the branch (`git push origin my-new-feature`)
6. Create new Pull Request
7. Thank You

License
-------

[](#license)

Copyright (c) MIT license.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.4% 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

3729d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cda0382de62dd8ac1c5d8ee05cdd4fde878353e3444c7d5ebadd6a67c404c54?d=identicon)[a87c81](/maintainers/a87c81)

---

Top Contributors

[![talevskiigor](https://avatars.githubusercontent.com/u/6525038?v=4)](https://github.com/talevskiigor "talevskiigor (37 commits)")[![marky291](https://avatars.githubusercontent.com/u/5384515?v=4)](https://github.com/marky291 "marky291 (1 commits)")

---

Tags

composerlaravelartisanbump

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)

PHPackages © 2026

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