PHPackages                             traw/report-composer-diff - 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. traw/report-composer-diff

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

traw/report-composer-diff
=========================

1.6.0(1mo ago)1159GPL-3.0-or-laterPHPPHP &gt;=8.0

Since Jul 25Pushed 1mo agoCompare

[ Source](https://github.com/thomasrawiel/report-composer-diff)[ Packagist](https://packagist.org/packages/traw/report-composer-diff)[ RSS](/packages/traw-report-composer-diff/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (5)Versions (12)Used By (0)

report-composer-diff
====================

[](#report-composer-diff)

This Symfony Console command compares composer.lock files between two Git references (tags, branches, or commits) and generates a detailed report of package changes.

Key features:

- Supports specifying source (--from) and target (--to) Git tags; if not provided, falls back to the two latest tags.
- Reads composer.lock directly from Git without checking out the refs.
- Detects changes, even if only branches are used (Branch names in composer.json must start with `dev-`, for example `dev-develop`)
- Classifies packages into added, removed, updated, and unchanged.
- Supports custom groups based on package name prefixes, in addition to built-in TYPO3 groups. Multiple prefixes per group are allowed.
- Outputs results in multiple formats: console, HTML, PDF, JSON, Markdown, or plain text.
- Generates a summary table per group and a detailed per-package report.

Installation
============

[](#installation)

I recommend installing in dev environment

`composer require traw/report-composer-diff --dev`

Usage
=====

[](#usage)

```
--html          - Write report.html
--json          - Write report.json
--txt           - Write report.txt
--md            - Write report.md
--filename      - Filename (& directory) where the report should be saved (needs --html, --pdf, --md, --txt or --json). Filename without file extension
--from          - Begin at git-ref
--to            - Stop at git-ref
--repo          - change directory
--group         - add one or more custom groups in the format groupname:prefix/,prefix2/,prefix3
--repo          - path to the .git repo
--include-dev   - Include dev-packages installed with `require-dev`

```

CLI table output

`bin/php vendor/bin/composer-diff`

---

Writes report.html

`php vendor/bin/composer-diff --html`

---

Writes report.pdf

`php vendor/bin/composer-diff --pdf`

---

Writes report.json

`php vendor/bin/composer-diff --json`

---

Writes report.html and report.pdf

`php vendor/bin/composer-diff --html`

---

Compare Tags

`php vendor/bin/composer-diff --from=v12.4.2 --to=v12.4.3 --html`

---

Use a specific repository

`php vendor/bin/composer-diff --repo=/home/user/projects/myrepo`

---

Compare Tag to current

`php vendor/bin/composer-diff --from=1.0.0 --html`

---

Compare Branch to Branch

`php vendor/bin/composer-diff --from=develop --to=main --html`

---

Write to a subdirectory

`php vendor/bin/composer-diff --html --filename=report/report`

---

Custom group

`php vendor/bin/composer-diff --group=mmygroup:traw/ --group=mycompany:namespaceprefix/`

---

Custom group with title, use `""`

`php vendor/bin/composer-diff --group="My custom packages":traw/ --group=mycompany:namespaceprefix/`

---

Multiple custom groups and multiple prefixes in one group - groupname:comma-list

`php vendor/bin/composer-diff --group=mycompany:prefix1/,prefix2/,prefix3 --group="My custom packages":prefix4/,prefix5/`

---

Create multiple output formats at once

`php vendor/bin/composer-diff --pdf --html --txt --md --json`

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance94

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~31 days

Total

11

Last Release

30d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.2

1.3.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5b5f37bac2846cb2e47cf2a0dc737726e94e63a241c256c14b17333b00475f1?d=identicon)[thomas.rawiel](/maintainers/thomas.rawiel)

---

Top Contributors

[![thomasrawiel](https://avatars.githubusercontent.com/u/5371428?v=4)](https://github.com/thomasrawiel "thomasrawiel (16 commits)")

### Embed Badge

![Health badge](/badges/traw-report-composer-diff/health.svg)

```
[![Health](https://phpackages.com/badges/traw-report-composer-diff/health.svg)](https://phpackages.com/packages/traw-report-composer-diff)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k42](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)

PHPackages © 2026

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