sebastian/diff
sebastian/diff is a standalone PHP diff library, factored out of PHPUnit. It generates unified, strict unified, or diff-only output, parses unified diffs into object graphs, and supports custom output builders. Install via Composer as a project or development dependency.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sebastian/object-reflector | 0.85 | sebastian/object-reflector lets you reflect an object's properties, including inherited, private, and protected ones. Install it via Composer to inspect and access object state that PHP's default reflection utilities don't easily expose. | 6,271 | 6,277 | 3 | 25M | 1 | 41.8 | 56.4 | BSD-3-Clause | 2 months ago | |
| sebastian/git-state | 0.85 | sebastian/git-state is a small PHP library for describing the state of a Git checkout. Its Builder returns the origin remote URL, current branch, commit hash, and working directory status, or false when the directory is not a repository. | 30 | 17 | 0 | 2M | 1 | 20.1 | 64.7 | BSD-3-Clause | 2 weeks ago | |
| lukascivil/treewalker | 0.84 | TreeWalker is a lightweight PHP 8.1+ library for manipulating nested arrays, objects, and JSON strings interchangeably. It offers diffing, recursive walking with edits/deletion, merging, and dynamic key-path get/set/create operations, with configurable array, object, or JSON output. | 73 | 74 | 28 | 85K | 0 | 13.0 | 45.9 | MIT | 6 months ago | |
| sebastian/peek-and-poke | 0.84 | sebastian/peek-and-poke is a small PHP utility that uses reflection to peek at and poke into objects. It lets you read and write private and protected properties, making it handy for tests that need to inspect or set up object state without changing production code. | 36 | 34 | 8 | 117 | 1 | 0.3 | 6.0 | NOASSERTION | — | |
| sebastianfeldmann/git | 0.83 | PHP library to access and interact with Git repositories. Provides a simple API for common Git commands and info (status, log, branches, tags), ideal for build scripts, CI tooling, and automation where you need Git data without shelling out manually. | 48 | 49 | 13 | 453K | 2 | 15.3 | 57.2 | MIT | 9 months ago | |
| sebastian/global-state | 0.83 | Snapshot and restore PHP global state with sebastian/global-state, the standalone component extracted from PHPUnit. Capture globals, superglobals, static properties, and constants for reliable test isolation. | 6,591 | 6,592 | 18 | 24M | 1 | 39.4 | 54.3 | BSD-3-Clause | 5 months ago | |
| sebastian/lines-of-code | 0.83 | A lightweight PHP library from Sebastian Bergmann for counting lines of code in PHP source files, reporting logical and physical line counts. Used by PHPUnit's code coverage tooling and handy for building metrics, reports, and static analysis tools. | 1,180 | 1,182 | 9 | 24M | 1 | 21.6 | 61.8 | BSD-3-Clause | 3 months ago | |
| d4h/finediff | 0.83 | A PHP implementation of the FineDiff algorithm for generating compact, granular diffs between strings. It supports character, word, and line-level comparisons and can render HTML or plain-text output, making it useful for version tracking, wikis, and collaborative editing. | 14 | 15 | 10 | 74K | 3 | 1.2 | 51.6 | MIT | — | |
| sebastian/exporter | 0.83 | Exports PHP variables into readable, stable string representations for visualization and debugging. Handles scalars, arrays, objects, resources, binary strings, and recursive references, producing clear output useful in test failures and developer tooling. | 6,810 | 6,819 | 40 | 16M | 1 | 48.6 | 52.8 | BSD-3-Clause | 2 months ago | |
| mistralys/text-diff | 0.82 | A PHP library for comparing text and rendering differences. It computes diffs between strings or files and presents changes in HTML or plain text via a flexible API, making it easy to add clear diff views to PHP applications. | 27 | — | 7 | — | 0 | 7.1 | — | MIT | 8 months ago |
|
| davidrjonas/composer-lock-diff | 0.82 | A CLI tool that compares two composer.lock files and reports which packages were added, removed, or updated, including version changes. Useful for changelogs, release notes, and reviewing dependency upgrades in pull requests. Outputs plain text or Markdown tables. | 283 | — | 18 | — | 8 | 4.8 | 4.5 | MIT | 1 year ago |
|
| sebastian/recursion-context | 0.82 | sebastian/recursion-context is a small PHP utility for tracking recursive traversals and avoiding infinite loops when walking nested structures. It provides the RecursionContext class used by sebastian/comparator and PHPUnit to handle recursion safely. | 6,557 | 6,561 | 19 | 26M | 1 | 44.0 | 56.4 | BSD-3-Clause | 2 months ago | |
| beyondcode/laravel-visual-diff | 0.82 | Laravel Visual Diff by Beyond Code captures snapshots of your app's rendered pages and highlights exactly what changed between runs, making it easy to catch unintended UI regressions during development, testing, and code review. | 165 | 161 | 22 | 10 | 3 | 1.3 | 0.8 | MIT | 7 years ago | |
| sebastian/comparator | 0.82 | Compare PHP values for equality with dedicated comparators for scalars, arrays, objects, dates, and more. Part of PHPUnit, it reports detailed differences via ComparisonFailure exceptions and ships a Factory for selecting the right comparator. | 7,042 | 7,061 | 74 | 16M | 1 | 52.9 | 52.7 | BSD-3-Clause | 2 months ago | |
| sebastian/phpcpd | 0.82 | PHPCPD is a copy/paste detector for PHP that finds duplicated code (clones) across files and reports duplicate lines and locations. Distributed as a PHAR and installable via Phive. Note: this project is unmaintained and archived. | 2,204 | 2,253 | 189 | 586K | 0 | 8.3 | 23.7 | BSD-3-Clause | — | |
| ion-bazan/composer-diff | 0.82 | Composer Diff compares composer.lock files across Git branches, commits, or tags and reports added, removed, and updated Composer packages. Use it to review dependency changes in pull requests and see exactly what a merge will alter in PHP projects. | 188 | 188 | 12 | 130K | 0 | 19.7 | 45.6 | MIT | 1 month ago | |
| sebastian/complexity | 0.82 | Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use. | 1,260 | 1,260 | 12 | 23M | 1 | 13.1 | 57.8 | BSD-3-Clause | 9 months ago | |
| phpspec/php-diff | 0.82 | phpspec/php-diff is a lightweight PHP library for generating diffs between strings and arrays. It computes insertions, deletions, and changes and can render readable output via formatters, making it useful for tests, code review tooling, and text comparison. | 360 | 381 | 31 | 629K | 0 | 4.6 | 45.5 | — | 6 years ago | |
| greywolfs/fine-diff-bundle | 0.82 | A Symfony bundle for fine-grained diffing, helping you detect and present precise changes between values or entity states. Integrates into Symfony applications to support change tracking, audit trails, and readable comparisons of before/after data. | 0 | 0 | 1 | 0 | 0 | 0.3 | — | — | 9 years ago | |
| sebastian/phpdcd | 0.82 | PHP Dead Code Detector (phpdcd) is a command-line tool that scans PHP codebases for unused functions and methods, helping teams find dead code to remove. Part of Sebastian Bergmann's tooling, it is now archived and largely superseded by modern static analysis tools. | 408 | 405 | 45 | 4K | 0 | 1.7 | 9.8 | NOASSERTION | — |
How can I help you explore Laravel packages today?