PHPackages                             totten/php-symbol-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. totten/php-symbol-diff

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

totten/php-symbol-diff
======================

Identify changes in PHP code by symbol (class/method)

139.0k—0%1[2 issues](https://github.com/totten/php-symbol-diff/issues)PHP

Since Aug 6Pushed 8y ago2 watchersCompare

[ Source](https://github.com/totten/php-symbol-diff)[ Packagist](https://packagist.org/packages/totten/php-symbol-diff)[ RSS](/packages/totten-php-symbol-diff/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

php-symbol-diff
===============

[](#php-symbol-diff)

This command compares two PHP source files and identifies the names of any symbols (classes, functions, methods, properties) which were added, removed, or modified.

```
# Compare two files
php-symbol-diff old.php new.php

# Compare a file with an older revision in git
git show abcd1234:/some/file.php | php-symbol-diff /dev/stdin some/file.php

# Compare all the files in different git commits
git-php-symbol-diff v1.0 v1.1

# Compare all files in a subdirectory for different git commits
git-php-symbol-diff v1.0 v1.1 -- my/sub/dir
```

Testing
-------

[](#testing)

Run [phpunit](https://phpunit.de/).

> Tests are based on `\PHPUnit_Framework_TestCase`, which is no longer provided by the latest PHPUnit. The tests have been successfully with PHPUnit 3, 4, and 5.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1336047?v=4)[Tim Otten](/maintainers/totten)[@totten](https://github.com/totten)

---

Top Contributors

[![totten](https://avatars.githubusercontent.com/u/1336047?v=4)](https://github.com/totten "totten (8 commits)")

### Embed Badge

![Health badge](/badges/totten-php-symbol-diff/health.svg)

```
[![Health](https://phpackages.com/badges/totten-php-symbol-diff/health.svg)](https://phpackages.com/packages/totten-php-symbol-diff)
```

###  Alternatives

[pastuhov/php-exec-command

Simple php command executor with param binding.

25205.4k2](/packages/pastuhov-php-exec-command)

PHPackages © 2026

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