PHPackages                             r3bzya/openapi-testing - 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. r3bzya/openapi-testing

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

r3bzya/openapi-testing
======================

This package allows you to integrate the specification validation into the flow of tests

v0.1.0(2y ago)012MITPHPPHP ^8.2

Since Dec 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/R3bzya/openapi-testing)[ Packagist](https://packagist.org/packages/r3bzya/openapi-testing)[ Docs](https://github.com/R3bzya/openapi-testing)[ RSS](/packages/r3bzya-openapi-testing/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

OpenApi Testing
===============

[](#openapi-testing)

This package allows you to integrate the specification validation into the flow of tests.

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

[](#installation)

> **Note**
> This package is mostly intended to be used as part of an API test suite.

Via Composer:

```
composer require --dev r3bzya/openapi-testing
```

Usage
-----

[](#usage)

You can use `\R3bzya\OpenApiTesting\Concerns\HasSpecificationAssertion` or `\R3bzya\OpenApiTesting\Concerns\ValidateOpenApiSpecification`just add one of them into your TestCase class.

### HasSpecificationAssertion

[](#hasspecificationassertion)

The `HasSpecificationAssertion` trait adds the `assertSpecification` method into your TestCase class, this may be necessary if you need to check one specific case.

### ValidateOpenApiSpecification

[](#validateopenapispecification)

The `ValidateOpenApiSpecification` trait integrates into the `call` method which will allow your application to validate specification in the flow of tests.

> **Note**
> If for some reason there is no need to validate the specification disable it in your test method with the `skipOpenApiSpecificationValidation` method or disable it globally for the Test class by the `skipOpenApiSpecificationValidation` property.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~69 days

Total

2

Last Release

846d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/61825630?v=4)[Aleksey Yakushev](/maintainers/R3bzya)[@R3bzya](https://github.com/R3bzya)

---

Top Contributors

[![R3bzya](https://avatars.githubusercontent.com/u/61825630?v=4)](https://github.com/R3bzya "R3bzya (2 commits)")

---

Tags

testing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/r3bzya-openapi-testing/health.svg)

```
[![Health](https://phpackages.com/badges/r3bzya-openapi-testing/health.svg)](https://phpackages.com/packages/r3bzya-openapi-testing)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k955.1M155.0k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k935.9M1.7k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k526.2M26.9k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k101.8M2.2k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k211.9M5.1k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

2.5k136.1M986](/packages/brianium-paratest)

PHPackages © 2026

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