PHPackages                             youbar/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. [Testing &amp; Quality](/categories/testing)
4. /
5. youbar/phpunit-snapshot-assertions

ActiveLibrary[Testing &amp; Quality](/categories/testing)

youbar/phpunit-snapshot-assertions
==================================

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

v1.0.1(8mo ago)012MITPHP

Since Oct 24Pushed 8mo agoCompare

[ Source](https://github.com/Youbar/phpunit-snapshot-assertions)[ Packagist](https://packagist.org/packages/youbar/phpunit-snapshot-assertions)[ RSS](/packages/youbar-phpunit-snapshot-assertions/feed)WikiDiscussions master Synced today

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

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

29

—

LowBetter than 57% of packages

Maintenance60

Regular maintenance activity

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

252d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16510310?v=4)[Younes el Barnoussi](/maintainers/YouneselBarnoussi)[@YouneselBarnoussi](https://github.com/YouneselBarnoussi)

---

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)")[![YouneselBarnoussi](https://avatars.githubusercontent.com/u/16510310?v=4)](https://github.com/YouneselBarnoussi "YouneselBarnoussi (2 commits)")[![dees040](https://avatars.githubusercontent.com/u/5390555?v=4)](https://github.com/dees040 "dees040 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[spatie/pest-plugin-snapshots

A package for snapshot testing in Pest

401.8M218](/packages/spatie-pest-plugin-snapshots)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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