PHPackages                             symplify/markdown-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. symplify/markdown-diff

Abandoned → [symplify/rule-doc-generator](/?search=symplify%2Frule-doc-generator)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

symplify/markdown-diff
======================

Package to print diffs for Markdown

10.1.0(4y ago)191.6M↑271.4%MITPHPPHP &gt;=8.0

Since Nov 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/deprecated-packages/markdown-diff)[ Packagist](https://packagist.org/packages/symplify/markdown-diff)[ Fund](https://www.paypal.me/rectorphp)[ GitHub Sponsors](https://github.com/tomasvotruba)[ RSS](/packages/symplify-markdown-diff/feed)WikiDiscussions main Synced 1w ago

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

Markdown Diff
=============

[](#markdown-diff)

[![Downloads total](https://camo.githubusercontent.com/11c0f38ed70aba25da785f9dc22fe3ef6970fc5042280edf45c9a1476c809e81/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f6d61726b646f776e2d646966662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/markdown-diff/stats)

Install
-------

[](#install)

```
composer require symplify/markdown-diff
```

Add to `config/config.php`:

```
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\MarkdownDiff\ValueObject\MarkdownDiffConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
    $containerConfigurator->import(MarkdownDiffConfig::class);
};
```

Usage
-----

[](#usage)

```
namespace App;

use Symplify\MarkdownDiff\Differ\MarkdownDiffer;

final class SomeClass
{
    /**
     * @var MarkdownDiffer
     */
    private $markdownDiffer;

    public function __construct(MarkdownDiffer $markdownDiffer)
    {
        $this->markdownDiffer = $markdownDiffer;
    }

    public function run(): void
    {
        $markdownDiff = $this->markdownDiffer->diff('oldContent', 'newContent');
        // ...
    }
}
```

Report Issues
-------------

[](#report-issues)

In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues)

Contribute
----------

[](#contribute)

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on [symplify/symplify](https://github.com/symplify/symplify).

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community9

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~2 days

Total

236

Last Release

1569d ago

Major Versions

8.3.48 → 9.0.0-BETA32020-11-24

9.4.70 → 10.0.0-beta12021-11-02

PHP version history (3 changes)9.0.0-BETA1PHP &gt;=7.2

9.0.0-rc1PHP &gt;=7.3

v9.3.27PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (279 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symplify-markdown-diff/health.svg)

```
[![Health](https://phpackages.com/badges/symplify-markdown-diff/health.svg)](https://phpackages.com/packages/symplify-markdown-diff)
```

###  Alternatives

[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5235.7M110](/packages/symplify-monorepo-builder)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k44](/packages/friendsoftypo3-content-blocks)[worksome/graphlint

A static analysis tool for GraphQL

13192.4k](/packages/worksome-graphlint)

PHPackages © 2026

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