# Diff

> Git\-compatible line diff and unified diff renderer for PHP\.

- Package: php\-forge/diff
- Collection: PHP Forge
- Topic: Quality and debugging
- Tags: diff, git, unified-diff
- Kind: library
- Relationship: Site curator ([evidence](<https://github.com/php-forge/diff/blob/abf7720e6e365d16d8b0e5cbeab9310e5fe5edba/composer.json>))
- Maintainer: [@terabytesoftw](<https://github.com/terabytesoftw>)
- PHP requirement: &gt;=8\.3
- License: BSD\-3\-Clause
- On this site: guide, API reference, agent skill

## Documentation on this site

- [Overview](</docs/extensions/diff/index.md>)
- [Installation guide](</docs/extensions/diff/installation/index.md>)
- [Algorithms guide](</docs/extensions/diff/algorithms/index.md>)
- [Usage examples](</docs/extensions/diff/examples/index.md>)
- [AI assistance](</docs/extensions/diff/agents/index.md>)
- [Testing](</docs/extensions/diff/testing/index.md>)
- [API reference](</docs/extensions/diff/reference/index.md>)
- [Agent skill php\-forge\-diff](</docs/skills/php-forge-diff/SKILL.md>)

## Compatibility

- PHP: &gt;=8\.3 ([composer\.json at this commit](<https://github.com/php-forge/diff/blob/abf7720e6e365d16d8b0e5cbeab9310e5fe5edba/composer.json>))

Requirements are recorded from the linked source revision. A catalog listing does not verify an application's dependency resolution or runtime behavior.

## Source and version

- Source revision: [abf7720e6e365d16d8b0e5cbeab9310e5fe5edba](<https://github.com/php-forge/diff/blob/abf7720e6e365d16d8b0e5cbeab9310e5fe5edba/composer.json>)
- Reference inspected: main
- Metadata reviewed: 2026-10-27

This is a source snapshot. A released package version and release stability have not been established for this record. Development constraints such as @dev remain explicit.

## Links

- [Documentation](</docs/extensions/diff/index.md>)
- [Repository](<https://github.com/php-forge/diff>)
- [Package catalog](</docs/packages/index.md>)
