Download the PHP package elkadrey/version-bump without Composer
On this page you can find all versions of the php package elkadrey/version-bump. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elkadrey/version-bump
More information about elkadrey/version-bump
Files in elkadrey/version-bump
Package version-bump
Short Description A Composer plugin that allows you to manage versioning similar to npm version. It supports patch, minor, major, prepatch, preminor, premajor, and prerelease versioning while integrating with Git for tagging and commits
License MIT
Informations about the package version-bump
Version Bump - Composer Plugin
A Composer plugin that allows you to manage versioning similar to npm version. It supports patch, minor, major, prepatch, preminor, premajor, and prerelease versioning while integrating with Git for tagging and commits.
🚀 Features
- Easily update version numbers in
composer.json - Automatically commit and tag new versions in Git
- Supports pre-release versions (
beta) - Compatible with semantic versioning (SemVer)
📥 Installation
Install the plugin globally or in a specific project:
If using locally, require it as a path repository:
🔧 Usage
Run the following command to manage versioning:
Set a specific version manually:
This will set the version in composer.json to exactly what <version> is.
🎯 Available Commands
| Command | Description |
|---|---|
prerelease |
Only increment beta version (beta.1 → beta.2) |
patch |
Bump patch version (1.0.0 → 1.0.1) |
minor |
Bump minor version (1.0.0 → 1.1.0) |
major |
Bump major version (1.0.0 → 2.0.0) |
prepatch |
Bump pre-release patch (1.0.0 → 1.0.1-beta.1) |
preminor |
Bump pre-release minor (1.0.0 → 1.1.0-beta.1) |
premajor |
Bump pre-release major (1.0.0 → 2.0.0-beta.1) |
<version> |
Set version to <version> |
--show |
Show the current version |
--no-git |
Skip Git commit and tagging |
📌 Examples
🔹 Standard Version Bumps
🔹 Pre-release Versioning
🔹 Increment Only Beta Version
🔹 Set a Specific Version
🔹 Skipping Git Operations
🛠 Development
Clone the repository and install dependencies:
Test locally using a path repository in another project:
📜 License
This project is licensed under the MIT License.
All versions of version-bump with dependencies
composer-plugin-api Version ^2.0
symfony/process Version *
composer/composer Version ^2.8