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

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

braskit/diff
============

Diffs two strings and generates an object graph

v1.0.1(11y ago)028MITPHPPHP &gt;=5.4

Since Apr 18Pushed 11y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (0)

Braskit\\Diff [![Build Status](https://camo.githubusercontent.com/08075ed7ede4d795a6bae7090f99c35b5d0135c994a5e48b2a5370975c55a327/68747470733a2f2f7472617669732d63692e6f72672f427261736b69742f446966662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Braskit/Diff)
=================================================================================================================================================================================================================================================================================

[](#braskitdiff-)

**Braskit\\Diff** is a PHP library which diffs two strings and generates an object graph. It was conceived because [Sebastian Bergmann's Diff library](https://github.com/sebastianbergmann/diff)isn't capable of parsing its own diffs (due to the output not being unified or whatever), while [this library](https://github.com/phpspec/php-diff), which does parse unified diffs, doesn't generate a usable object graph. Braskit\\Diff solves this problem by providing the needed glue between the two libraries.

Usage
-----

[](#usage)

```
