PHPackages                             nucleos/relazy - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. nucleos/relazy

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

nucleos/relazy
==============

relazy - The lazy release tool

0.3.0(8mo ago)1111[4 issues](https://github.com/nucleos/relazy/issues)[2 PRs](https://github.com/nucleos/relazy/pulls)MITPHPPHP ^8.3

Since May 26Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/nucleos/relazy)[ Packagist](https://packagist.org/packages/nucleos/relazy)[ Docs](https://github.com/nucleos/relazy)[ Fund](https://donate.core23.de)[ GitHub Sponsors](https://github.com/core23)[ RSS](/packages/nucleos-relazy/feed)WikiDiscussions 0.4.x Synced today

READMEChangelog (3)Dependencies (5)Versions (10)Used By (0)

relazy
======

[](#relazy)

[![Latest Stable Version](https://camo.githubusercontent.com/9b33b64d54755696507bed7c6a7916466e7ea5f43216f290e68d906d4b465630/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f72656c617a792f762f737461626c65)](https://packagist.org/packages/nucleos/relazy)[![Latest Unstable Version](https://camo.githubusercontent.com/25823fe7a0748d35b734492c7228ffdb75484c7bdb6cdb101ed8f6eedc8aeef8/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f72656c617a792f762f756e737461626c65)](https://packagist.org/packages/nucleos/relazy)[![License](https://camo.githubusercontent.com/bb8cb7401bec96b2076d0a24d36971380de60c04efb1dfce87888ac51fd8abc6/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f72656c617a792f6c6963656e7365)](LICENSE.md)

[![Total Downloads](https://camo.githubusercontent.com/20364d582228614721ffbca8c7f67f5f03fff5d854acd33cd1809bd1d397e1bd/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f72656c617a792f646f776e6c6f616473)](https://packagist.org/packages/nucleos/relazy)[![Monthly Downloads](https://camo.githubusercontent.com/4e0d987d811ff23215cbef42420bc2901773d3c26627f8b19b5808fd12f1482e/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f72656c617a792f642f6d6f6e74686c79)](https://packagist.org/packages/nucleos/relazy)[![Daily Downloads](https://camo.githubusercontent.com/48a818a8bc6d187f6cac5bcf1e0d0fa97fc0f16298c8bce4c5bdd94e133897df/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f72656c617a792f642f6461696c79)](https://packagist.org/packages/nucleos/relazy)

[![Continuous Integration](https://github.com/nucleos/relazy/actions/workflows/continuous-integration.yml/badge.svg?event=push)](https://github.com/nucleos/relazy/actions?query=workflow%3A%22Continuous+Integration%22+event%3Apush)[![Code Coverage](https://camo.githubusercontent.com/a93e10f24ab1ae65de83c6fa382776a7562f65fca9d3e7b9a0c49c53f9b84473/68747470733a2f2f636f6465636f762e696f2f67682f6e75636c656f732f72656c617a792f67726170682f62616467652e737667)](https://codecov.io/gh/nucleos/relazy)

Relazy is a handy tool to help releasing new versions of your software. You can define the type of version generator you want to use (e.g. semantic versioning), where you want to store the version (e.g. in a changelog file or as a VCS tag) and a list of actions that should be executed before or after the release of a new version.

This project was originally inspired by the [RMT](https://github.com/liip/RMT) project, but with some major refactoring and more modern approach (e.g. PHP config with autocompletion).

Installation
------------

[](#installation)

### Option 1: As a development dependency of your project

[](#option-1-as-a-development-dependency-of-your-project)

In order to use relazy in your project you should use [Composer](https://getcomposer.org/) to install it as a dev-dependency. Just go to your project's root directory and execute:

```
composer require --dev nucleos/relazy

```

Then you must need to create a `.relazy.php` config file to run the `relazy` executable script in your project's root folder.

```
./relazy

```

Once there, your best option is to pick one of the [configuration examples](#configuration-examples) below and adapt it to your needs.

### Option 2: As a global Composer installation

[](#option-2-as-a-global-composer-installation)

You can add relazy to your global `composer.json` and have it available globally for all your projects. Therefor just run the following command:

```
composer global require nucleos/relazy

```

Make sure you have `~/.composer/vendor/bin/` in your $PATH.

### Option 3: As a Phar file

[](#option-3-as-a-phar-file)

Relazy can be installed through [phar-composer](https://github.com/clue/phar-composer/), which needs to be [installed](https://github.com/clue/phar-composer/#install) therefor. This useful tool allows you to create runnable Phar files from Composer packages.

If you have phar-composer installed, you can run:

```
phar-composer install nucleos/relazy

```

and have phar-composer build and install the Phar file to your `$PATH`, which then allows you to run it simply as `relazy`from the command line, or you can run

```
phar-composer build nucleos/relazy

```

and copy the resulting Phar file manually to where you need it. Either make the Phar file executable via `chmod +x relazy.phar` and execute it directly `./relazy.phar` or run it by invoking it through PHP via `php relazy.phar`.

For the usage substitute relazy with whatever variant you have decided to use.

Usage
-----

[](#usage)

Using relazy is very straightforward, just run the command:

```
./relazy release

```

Relazy will then execute the following tasks:

1. Execute the startup actions
2. Ask the user to answer potentials questions
3. Execute the pre-release actions
4. Release
    - Generate a new version number
    - Persist the new version number
5. Execute the post-release actions

Here is an example output:

### Additional commands

[](#additional-commands)

The `release` command provides the main behavior of the tool, additional some extra commands are available:

- `current` will show your project current version number (alias version)
- `changes` display the changes that will be incorporated in the next release

Configuration
-------------

[](#configuration)

All relazy configurations have to be done in `.relazy.php`. The file is divided in the following elements:

- `vcs`: The type of VCS you are using, can be `Git` or `Noop`
- `startupActions`: A list `[]` of actions that will be executed just after startup without user interaction
- `preReleaseActions`: A list `[]` of actions that will be executed before the release process
- `versionGenerator`: The generator to use to create a new version (mandatory)
- `versionPersister`: The persister to use to store the versions (mandatory)
- `postReleaseActions`: A list `[]` of actions that will be executed after the release

All entries of this config work the same. You have to specify the class you want to handle the action. Example:

```
use Nucleos\Relazy\Changelog\Formatter\SemanticFormatter;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SimpleGenerator;
use Nucleos\Relazy\Version\Persister\TagPersister;
use Nucleos\Relazy\VersionControl\Git;

return (new RelazyConfig(new Git()))
    ->versionGenerator(new SimpleGenerator())
    ->versionPersister(new TagPersister(tagPrefix: 'v_'))
    ->formatter(new SemanticFormatter())
    // ...
;
```

Extend it
---------

[](#extend-it)

Relazy is providing some existing actions, generators, and persisters. If needed you can add your own by creating a PHP script in your project, and referencing it in the configuration:

```
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\VersionControl\Git;

return (new RelazyConfig(new Git()))
    ->versionGenerator(new \Acme\CustomGenerator())
    // ...
;
```

Configuration examples
----------------------

[](#configuration-examples)

Most of the time, it will be easier for you to pick up an example below and adapt it to your needs.

### No VCS, changelog updater only

[](#no-vcs-changelog-updater-only)

```
use Nucleos\Relazy\Changelog\Formatter\SemanticFormatter;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SimpleGenerator;
use Nucleos\Relazy\Version\Persister\ChangelogPersister;
use Nucleos\Relazy\VersionControl\Noop;

return (new RelazyConfig())
    ->versionGenerator(new SimpleGenerator())
    ->versionPersister(new ChangelogPersister())
    ->formatter(new SemanticFormatter())
    // ...
;
```

### Using Git tags, simple versioning and startup actions

[](#using-git-tags-simple-versioning-and-startup-actions)

```
new Nucleos\Relazy\Action\VersionControl\CheckWorkingCopyAction;
new Nucleos\Relazy\Action\VersionControl\LastChangesAction;
use Nucleos\Relazy\Changelog\Formatter\SemanticFormatter;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SimpleGenerator;
use Nucleos\Relazy\Version\Persister\ChangelogPersister;
use Nucleos\Relazy\VersionControl\Git;

return (new RelazyConfig(new Git()))
    ->versionGenerator(new SimpleGenerator())
    ->versionPersister(new ChangelogPersister())
    ->formatter(new SemanticFormatter())
    ->startupActions([
        new CheckWorkingCopyAction(),
        new DisplayLastChanges(),
    ])
;
```

### Using Git tags, simple versioning and startup actions

[](#using-git-tags-simple-versioning-and-startup-actions-1)

```
use Nucleos\Relazy\Action\Composer\ValidateAction;
use Nucleos\Relazy\Action\Composer\StabilityCheckAction;
use Nucleos\Relazy\Action\Composer\DependencyStabilityCheckAction;
use Nucleos\Relazy\Changelog\Formatter\SemanticFormatter;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SimpleGenerator;
use Nucleos\Relazy\Version\Persister\TagPersister;
use Nucleos\Relazy\VersionControl\Git;

return (new RelazyConfig(new Git(signCommit: true, signTag: true)))
    ->versionGenerator(new SimpleGenerator())
    ->versionPersister(new TagPersister())
    ->startupActions([
        new ValidateAction(),
        new StabilityCheckAction(),
        new DependencyStabilityCheckAction(allowList: [
            'symfony/console',
            'phpunit/phpunit' => 'require-dev',
        ]),
    ])
;
```

### Using Git tags, simple versioning and startup actions, and gpg sign commit and tags

[](#using-git-tags-simple-versioning-and-startup-actions-and-gpg-sign-commit-and-tags)

```
new Nucleos\Relazy\Action\VersionControl\CheckWorkingCopyAction;
new Nucleos\Relazy\Action\VersionControl\LastChangesAction;
use Nucleos\Relazy\Changelog\Formatter\SemanticFormatter;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SimpleGenerator;
use Nucleos\Relazy\Version\Persister\ChangelogPersister;
use Nucleos\Relazy\VersionControl\Git;

return (new RelazyConfig(new Git(signCommit: true, signTag: true)))
    ->versionGenerator(new SimpleGenerator())
    ->versionPersister(new ChangelogPersister())
    ->startupActions([
        new CheckWorkingCopyAction(),
        new DisplayLastChanges(),
    ])
;
```

### Using Git tags with prefix, semantic versioning, updating two files and pushing automatically

[](#using-git-tags-with-prefix-semantic-versioning-updating-two-files-and-pushing-automatically)

```
use Nucleos\Relazy\Action\Filesystem\FilesUpdateAction;
use Nucleos\Relazy\Action\VersionControl\PublishAction;
use Nucleos\Relazy\Config\RelazyConfig;
use Nucleos\Relazy\Version\Generator\SemanticGenerator;
use Nucleos\Relazy\Version\Persister\TagPersister;
use Nucleos\Relazy\VersionControl\Git;

return (new RelazyConfig(new Git(signCommit: true, signTag: true)))
    ->versionGenerator(new SemanticGenerator())
    ->versionPersister(new TagPersister(tagPrefix: 'v_'))
    ->preReleaseActions([
        new FilesUpdateAction(files: [
            'config.yml' => '%version%',
            'app.ini' => 'dynamic-version: %version%'
        ]),
    ])
    ->postReleaseActions([
        new PublishAction(),
    ])
;
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance55

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% 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 ~82 days

Recently: every ~65 days

Total

7

Last Release

263d ago

PHP version history (2 changes)0.1.0PHP ^8.2

0.3.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3440437?v=4)[Christian Gripp](/maintainers/core23)[@core23](https://github.com/core23)

---

Top Contributors

[![core23](https://avatars.githubusercontent.com/u/3440437?v=4)](https://github.com/core23 "core23 (23 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")

---

Tags

releasecommandtagversionsemantic versioning

### Embed Badge

![Health badge](/badges/nucleos-relazy/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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