PHPackages                             wmde/configdiff - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. wmde/configdiff

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

wmde/configdiff
===============

Show differences between constants defined in PHP files

1.0.0(10y ago)015GPL-2.0PHP

Since Nov 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/wmde/configdiff)[ Packagist](https://packagist.org/packages/wmde/configdiff)[ Docs](https://github.com/wmde/configdiff)[ RSS](/packages/wmde-configdiff/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

configdiff
==========

[](#configdiff)

`configdiff` is a command-line tool to compare two PHP configuration files containing configuration values defined as constants. One file being the configuration "template" or "distribution version", the other being the concrete config file. `configdiff` checks whether both files contain the same constant names and outputs the missing and/or superfluous constant names.

The script should be called as part of a deployment to guard against missing configuration values, e.g. when new values have been added to the template as part of ongoing development.

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

[](#installation)

```
composer require wmde/configdiff

```

Running the script
------------------

[](#running-the-script)

If the `vendor/bin` path (project-local or global) is in your `$PATH`, you can just call

```
configdiff TEMPLATE_FILE CONFIGURATION_FILE

```

Otherwise you call

```
php vendor/bin/configdiff.php TEMPLATE_FILE CONFIGURATION_FILE

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3896d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/054adb441e7ee248ec924bc45fa793835c284710eb31627587fa5de21bab9e96?d=identicon)[wmde](/maintainers/wmde)

![](https://avatars.githubusercontent.com/u/223326?v=4)[Gabriel Birke](/maintainers/gbirke)[@gbirke](https://github.com/gbirke)

---

Top Contributors

[![gbirke](https://avatars.githubusercontent.com/u/223326?v=4)](https://github.com/gbirke "gbirke (7 commits)")

---

Tags

configurationparserconst

### Embed Badge

![Health badge](/badges/wmde-configdiff/health.svg)

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

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k954.1M2.4k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k959.4M160](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.1k156.8M869](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k437.5M1.0k](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

1.8k269.7M321](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k211.0M75](/packages/sabberworm-php-css-parser)

PHPackages © 2026

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