PHPackages                             corneltek/phprelease - 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. corneltek/phprelease

ActiveLibrary

corneltek/phprelease
====================

1.3.2(9y ago)344.7k3[7 issues](https://github.com/c9s/PHPRelease/issues)2MITPHP

Since Mar 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/c9s/PHPRelease)[ Packagist](https://packagist.org/packages/corneltek/phprelease)[ RSS](/packages/corneltek-phprelease/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (22)Used By (2)

PHPRelease
==========

[](#phprelease)

[![Latest Stable Version](https://camo.githubusercontent.com/591a97e9ef5cef174ea600a5739c495e900af475359614ef7006ee3eaebbfa3d/68747470733a2f2f706f7365722e707567782e6f72672f636f726e656c74656b2f70687072656c656173652f762f737461626c65)](https://packagist.org/packages/corneltek/phprelease) [![Total Downloads](https://camo.githubusercontent.com/4ec5833e550d2dbd8f3a606f1d708c9b0a020baa641cffcddedbae2e54bc2846/68747470733a2f2f706f7365722e707567782e6f72672f636f726e656c74656b2f70687072656c656173652f646f776e6c6f616473)](https://packagist.org/packages/corneltek/phprelease) [![Latest Unstable Version](https://camo.githubusercontent.com/dfdeababe031f868b5f7d4bd2379289813786b853f3395c6e3f88f0233213321/68747470733a2f2f706f7365722e707567782e6f72672f636f726e656c74656b2f70687072656c656173652f762f756e737461626c65)](https://packagist.org/packages/corneltek/phprelease) [![License](https://camo.githubusercontent.com/1ac72cea7eececcf618f3c6ba1560296eb9d7aba96e399989e63d8802c042a31/68747470733a2f2f706f7365722e707567782e6f72672f636f726e656c74656b2f70687072656c656173652f6c6963656e7365)](https://packagist.org/packages/corneltek/phprelease)[![Build Status](https://camo.githubusercontent.com/4ecfa9baa19d96af917092c5c370863f7e1e3618aca1d3584a7fa57909e163e0/68747470733a2f2f7472617669732d63692e6f72672f6339732f50485052656c656173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/c9s/PHPRelease)

The simplest way to define your release process.

Features
--------

[](#features)

- Automatically version bumping for Composer, Onion, PHPDoc or Class constant.
- Support version parsing from PHPDoc or class const.
- Git tagging, pushing.
- Simplest config.

Install
-------

[](#install)

```
$ curl -OLSs https://raw.github.com/c9s/PHPRelease/master/phprelease
$ chmod +x phprelease
$ mv phprelease /usr/bin
```

### Including phprelease in your project

[](#including-phprelease-in-your-project)

Simplfy run composer require to include the package:

```
composer require --dev corneltek/phprelease

```

Usage
-----

[](#usage)

Create phprelease.ini config file by a simple command:

```
$ phprelease init
```

The above command creates a `phprelease.ini` config file, you can also edit it by yourself:

```
Steps = PHPUnit, BumpVersion, GitTag, GitPush, GitPushTags
```

The release steps may contains script files, you can simply insert the script path and phprelease will run it for you. the return code 0 means we are going to the next step.

```
Steps = BumpVersion, scripts/compile, GitTag
```

Then, to release your package, simply type:

```
$ phprelease
```

Bumping Version
---------------

[](#bumping-version)

To bump major version and do release:

```
$ phprelease --bump-major
===> Bumping version from 2.2.3 => 3.0.0

```

To bump minor version and do release:

```
$ phprelease --bump-minor
===> Bumping version from 2.2.3 => 2.3.0

```

To bump minor version and set the stability suffix:

```
$ phprelease --bump-minor --dev
===> Bumping version from 2.2.3 => 2.3.0-dev

$ phprelease --bump-minor --beta
===> Bumping version from 2.2.3 => 2.3.0-beta

$ phprelease --bump-minor --rc
===> Bumping version from 2.2.3 => 2.3.0-rc

$ phprelease --bump-minor --rc1
===> Bumping version from 2.2.3 => 2.3.0-rc1

$ phprelease --bump-minor --rc2
===> Bumping version from 2.2.3 => 2.3.0-rc2

$ phprelease --bump-minor --stable
===> Bumping version from 2.2.3 => 2.3.0

```

To use a version prefix for the git tag, add this key to your phprelease.ini:

```
GitTagPrefix = v.
```

This will result in something like:

```
$ phprelease
===> Version bump from 2.2.3 to 2.3.0
===> Running PHPRelease\Tasks\GitTag
===> Tagging as v.1.2.2

```

Configuring GitAdd Task
-----------------------

[](#configuring-gitadd-task)

To use GitAdd Task, you may simply add the config below to your phprelease.ini:

```
[GitAdd]
Paths[] = src/
Paths[] = tests/
```

Skipping Specific Step
----------------------

[](#skipping-specific-step)

```
$ phprelease --skip BumpVersion
```

Getting Version From PHP Source File
------------------------------------

[](#getting-version-from-php-source-file)

If you defined your version string in your PHP source file or class const, to bump version from php source file, you can simply define a `VersionFrom` option:

```
; to read version from php class file or from phpdoc "@VERSION ..."
VersionFrom = src/PHPRelease/Console.php
```

Task Options
------------

[](#task-options)

Each task has its own options, run help command, you should see the options from these tasks:

```
$ phprelease help
PHPRelease - The Fast PHP Release Manager

Usage
    phprelease [options] [command] [argument1 argument2...]

Options
           -v, --verbose   Print verbose message.
             -d, --debug   Print debug message.
             -q, --quiet   Be quiet.
              -h, --help   help
               --version   show version
                   --dry   dryrun mode.
            --bump-major   bump major (X) version.
            --bump-minor   bump minor (Y) version.
            --bump-patch   bump patch (Z) version, this is the default.
 -s, --stability    set stability
                   --dev   set stability to dev.
                    --rc   set stability to rc.
                   --rc1   set stability to rc1.
                   --rc2   set stability to rc2.
                   --rc3   set stability to rc3.
                   --rc4   set stability to rc4.
                   --rc5   set stability to rc5.
                  --beta   set stability to beta.
                 --alpha   set stability to alpha.
                --stable   set stability to stable.
       --remote +   git remote names for pushing.

```

So to bump the major verion, simply pass the flag:

```
phprelease --bump-major

```

You can also test your release steps in dry-run mode:

```
phprelease --dryrun

```

Built-In Tasks
--------------

[](#built-in-tasks)

```
BumpVersion
GitCommit
GitPush
GitPushTags
GitTag
PHPUnit

```

Hacking
-------

[](#hacking)

1. For this project.
2. Get composer, and run:

    composer install --dev
3. Hack!

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

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

Every ~65 days

Recently: every ~289 days

Total

21

Last Release

3504d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cc34cde233b660869ff329ed8e20df611f75dfb61aab3e30889ac153d3e5e61?d=identicon)[c9s](/maintainers/c9s)

---

Top Contributors

[![c9s](https://avatars.githubusercontent.com/u/50894?v=4)](https://github.com/c9s "c9s (155 commits)")[![joy2fun](https://avatars.githubusercontent.com/u/7264066?v=4)](https://github.com/joy2fun "joy2fun (1 commits)")[![tored](https://avatars.githubusercontent.com/u/363750?v=4)](https://github.com/tored "tored (1 commits)")

### Embed Badge

![Health badge](/badges/corneltek-phprelease/health.svg)

```
[![Health](https://phpackages.com/badges/corneltek-phprelease/health.svg)](https://phpackages.com/packages/corneltek-phprelease)
```

###  Alternatives

[corneltek/pux

The fast PHP router

1.3k49.2k7](/packages/corneltek-pux)[corneltek/assetkit

High performance asset manager.

531.4k3](/packages/corneltek-assetkit)[corneltek/classmap

1810.3k](/packages/corneltek-classmap)[corneltek/lazyrecord

The Fast PHP ORM

103.6k2](/packages/corneltek-lazyrecord)

PHPackages © 2026

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