PHPackages                             merzdan/swagger-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. merzdan/swagger-assertions

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

merzdan/swagger-assertions
==========================

Test your API requests and responses against your swagger definition

015PHP

Since Oct 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/merzdan/SwaggerAssertions)[ Packagist](https://packagist.org/packages/merzdan/swagger-assertions)[ RSS](/packages/merzdan-swagger-assertions/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Swagger Assertions
==================

[](#swagger-assertions)

Test any API requests and responses match with the models described in the documentation.

This project is compatible with [Swagger 2](http://swagger.io/) spec definitions.

Installing via Composer
-----------------------

[](#installing-via-composer)

You can use [Composer](https://getcomposer.org) .

```
composer require merzdan/swagger-assertions
```

FAQ
---

[](#faq)

 Q: Can this library validate my Swagger definition? A: No. This library validate your API requests and responses match your Swagger definition.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.8% 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://www.gravatar.com/avatar/524ebdb9642cc2a74096c11abe7080c697ddc01ad4c6d4fda488f97083e73dcf?d=identicon)[danmerz](/maintainers/danmerz)

---

Top Contributors

[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (89 commits)")[![jessedc](https://avatars.githubusercontent.com/u/17407?v=4)](https://github.com/jessedc "jessedc (6 commits)")[![yutupgo](https://avatars.githubusercontent.com/u/66216015?v=4)](https://github.com/yutupgo "yutupgo (3 commits)")

### Embed Badge

![Health badge](/badges/merzdan-swagger-assertions/health.svg)

```
[![Health](https://phpackages.com/badges/merzdan-swagger-assertions/health.svg)](https://phpackages.com/packages/merzdan-swagger-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)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

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

PHPackages © 2026

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