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(6mo ago)012MITPHP

Since Oct 24Pushed 6mo 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 1mo ago

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

31

—

LowBetter than 68% of packages

Maintenance66

Regular maintenance activity

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

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

197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa3fc9cede53fb5f8b0f6339dc9fb3234087b0e29b7c37b979564784c45b506d?d=identicon)[YouneselBarnoussi](/maintainers/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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M678](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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