PHPackages                             spiritsaint/code-difference - 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. spiritsaint/code-difference

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

spiritsaint/code-difference
===========================

A Laravel Nova field to view differences between two inputs.

33.4k↓50%3Vue

Since Apr 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Zen0x7/code-difference)[ Packagist](https://packagist.org/packages/spiritsaint/code-difference)[ RSS](/packages/spiritsaint-code-difference/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Nova
============

[](#laravel-nova)

CodeDifference Field
--------------------

[](#codedifference-field)

The following field can be used to view differences between two inputs.

### Usage

[](#usage)

```
CodeDifference::make(__("Differences"), function() {
    return ["past" => $this->past, "next" => $this->next];
})->onlyOnDetail()
```

### Dependencies

[](#dependencies)

- Vue Code Diff (vue-code-diff on npm)

Thanks!

### License

[](#license)

This code is public and open-source using MIT License.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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/8731267?v=4)[Ian Torres](/maintainers/zen0x7)[@Zen0x7](https://github.com/Zen0x7)

---

Top Contributors

[![Zen0x7](https://avatars.githubusercontent.com/u/8731267?v=4)](https://github.com/Zen0x7 "Zen0x7 (3 commits)")

### Embed Badge

![Health badge](/badges/spiritsaint-code-difference/health.svg)

```
[![Health](https://phpackages.com/badges/spiritsaint-code-difference/health.svg)](https://phpackages.com/packages/spiritsaint-code-difference)
```

PHPackages © 2026

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