PHPackages                             owowagency/phpunit-snapshot-assertions - 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. owowagency/phpunit-snapshot-assertions

ActiveLibrary

owowagency/phpunit-snapshot-assertions
======================================

An extension of the spatie/phpunit-snapshot-assertions package.

v1.0.0(2y ago)231.6k↑1705.8%1[2 PRs](https://github.com/owowagency/phpunit-snapshot-assertions/pulls)4MITPHPCI passing

Since Oct 7Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/owowagency/phpunit-snapshot-assertions)[ Packagist](https://packagist.org/packages/owowagency/phpunit-snapshot-assertions)[ RSS](/packages/owowagency-phpunit-snapshot-assertions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (12)Used By (4)

phpunit-snapshot-assertions
===========================

[](#phpunit-snapshot-assertions)

An extension of the spatie/phpunit-snapshot-assertions package. This package adds `assertJsonStructureSnapshot()` method that only compares JSON keys, so the values can be different and the test will still pass.

Installation
------------

[](#installation)

`composer require --dev owowagency/phpunit-snapshot-assertions`

Usage
-----

[](#usage)

```
use OwowAgency\Snapshots\MatchesSnapshots;

class OrderTest
{
    use MatchesSnapshots;

    public function test_it_casts_to_json()
    {
        $order = new Order(1);

        $this->assertJsonStructureSnapshot($order->toJson());
    }
}

```

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance57

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% 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.

###  Release Activity

Cadence

Every ~181 days

Recently: every ~325 days

Total

9

Last Release

956d ago

Major Versions

0.0.8 → v1.0.02023-09-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b0064d818f9593dfb4f9d86217bbf5f14961ad6779b84fd5546dd91f296d898?d=identicon)[dees040](/maintainers/dees040)

---

Top Contributors

[![thomasowow](https://avatars.githubusercontent.com/u/45201651?v=4)](https://github.com/thomasowow "thomasowow (6 commits)")[![albertpratomo](https://avatars.githubusercontent.com/u/25815584?v=4)](https://github.com/albertpratomo "albertpratomo (4 commits)")[![dees040](https://avatars.githubusercontent.com/u/5390555?v=4)](https://github.com/dees040 "dees040 (1 commits)")

### Embed Badge

![Health badge](/badges/owowagency-phpunit-snapshot-assertions/health.svg)

```
[![Health](https://phpackages.com/badges/owowagency-phpunit-snapshot-assertions/health.svg)](https://phpackages.com/packages/owowagency-phpunit-snapshot-assertions)
```

###  Alternatives

[spatie/pest-plugin-snapshots

A package for snapshot testing in Pest

381.7M157](/packages/spatie-pest-plugin-snapshots)

PHPackages © 2026

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