PHPackages                             serethix/composer-command-log - 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. serethix/composer-command-log

ActiveComposer-plugin

serethix/composer-command-log
=============================

Logs all executed commands in order of execution so you can re run them in case there is a merge conflict during a merge or rebase

v1.0.4(6y ago)14MITPHPPHP &gt;=7.1CI failing

Since Nov 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SerethiX/ComposerCommandLog)[ Packagist](https://packagist.org/packages/serethix/composer-command-log)[ RSS](/packages/serethix-composer-command-log/feed)WikiDiscussions master Synced 5d ago

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

README
======

[](#readme)

Are you also stressed by handling a lot of merge conflicts in your composer.json / composer.lock?

Try this composer plugin! It tracks all composer commands you execute on a project in a project file, so whenever there is a conflict with someone else's branch: Accept theirs or even better: check out their version and simply redo your changes on top of that!

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

[](#installation)

`composer require serethix/composer-command-log` or if you want to run it globally run `composer global require serethix/composer-command-log`

In case you encounter an error with this plugin you can run every command with the `--no-plugins` option to temporarily disable all installed plugins.

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

[](#configuration)

This Plugin can be configured either globally or on a per project base.

Currently you can specify these options:

```
{
  "require": {
    "serethix/composer-command-log": "^1.0"
  },
  "config": {
    "command-logfile": "composer-command.log",
    "command-to-log": [
      "require",
      "remove",
      "update",
      "upgrade",
      "run-script",
      "exec",
      "dumpautoload",
      "dump-autoload",
      "config"
    ]
  }
}
```

`command-logfile` specifies the name and path relative to your project directory.

By altering the `command-to-log` config you can add other commands to the list of commands you want to log and therefore be able to replay later.

This are also the default values and you only need to provide them in case you need a change on them.

Contributing
============

[](#contributing)

Pull requests for new features, bug fixes and suggestions are welcome.

Before creating new features have a look at the already planned features and WIP features.

Planned features
----------------

[](#planned-features)

- Utilizing the `tag` property that is saved together with the commands information
    - include/exclude filter for tags
- Time based filter
- Ask for confirmation on every command before executing (like `git add -p` modes)
    - **a**ccept all
    - **y**es
    - **n**o
    - **l**ater
- Flock on log file during processing.

WIP features
------------

[](#wip-features)

*Project just started, so what are you thinking? ^^*

License
=======

[](#license)

[MIT License](https://github.com/SerethiX/ComposerCommandLog/blob/master/LICENSE)

Thanks go to
============

[](#thanks-go-to)

Rafael Dohms for his [blog post](http://blog.doh.ms/2016/11/28/solving-conflicts-in-composer-lock/) that inspired the creation of this composer plugin.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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 ~99 days

Total

3

Last Release

2535d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/585c9e91c80b40c4910f96b0039dbda2485abaeddbc2d25afd82fe3b1e5b25b1?d=identicon)[SerethiX](/maintainers/SerethiX)

### Embed Badge

![Health badge](/badges/serethix-composer-command-log/health.svg)

```
[![Health](https://phpackages.com/badges/serethix-composer-command-log/health.svg)](https://phpackages.com/packages/serethix-composer-command-log)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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