PHPackages                             softonic/openapi-validation-formats-extension - 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. [API Development](/categories/api)
4. /
5. softonic/openapi-validation-formats-extension

ActiveLibrary[API Development](/categories/api)

softonic/openapi-validation-formats-extension
=============================================

Softonic OpenApi validation formats extension

1.2.0(6y ago)351.4k↓49%Apache-2.0PHPPHP &gt;=7.1CI failing

Since Jul 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/softonic/openapi-validation-formats-extension)[ Packagist](https://packagist.org/packages/softonic/openapi-validation-formats-extension)[ Docs](https://github.com/softonic/openapi-validation-formats-extension)[ RSS](/packages/softonic-openapi-validation-formats-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

OpenApi validation formats extension
====================================

[](#openapi-validation-formats-extension)

[![Latest Version](https://camo.githubusercontent.com/6770007fd5e2ca15f90eadd78832e77fa45dc8c21cb7770ad4900ca9053b5e83/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f6f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/openapi-validation-formats-extension/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/31d2e041257c42afd17c37d87edfec802e0327244f1a927bfa632f7ed3651c4c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f66746f6e69632f6f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/softonic/openapi-validation-formats-extension)[![Coverage Status](https://camo.githubusercontent.com/0898fde3374ee41c3910ce30293a013bae2575175ef260b04dc5fdd24621a3b6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736f66746f6e69632f6f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/openapi-validation-formats-extension/code-structure)[![Quality Score](https://camo.githubusercontent.com/e8121c188956b29c6db74c64b38b230167d9e801b5186b13015ce557fc80cfa7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736f66746f6e69632f6f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/softonic/openapi-validation-formats-extension)[![Total Downloads](https://camo.githubusercontent.com/6fdce66a907de0a79504710bd0406c965d68ed56c5bc00a36dcce5a41f57b69e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f6f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/openapi-validation-formats-extension)[![Average time to resolve an issue](https://camo.githubusercontent.com/0fd54f713851100d865c8534e502f4481314339ad5ace85989eb0dd0587adde7/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f6f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/openapi-validation-formats-extension "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/aee9f5784c1ac7876fa4d439dbde35b95cfa313f0d934c5f3064b02058fa54d8/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f676f70656e6170692d76616c69646174696f6e2d666f726d6174732d657874656e73696f6e2e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/openapi-validation-formats-extension "Percentage of issues still open")

This library adds some format validation for [OpenAPI validation middleware](https://github.com/hkarlstrom/openapi-validation-middleware) package.

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

[](#installation)

Via composer:

```
composer require softonic/openapi-validation-formats-extension

```

Documentation
-------------

[](#documentation)

Once installed you will be able to register the formats that you want from this package.

In this example we can see how to register the UUID format.

```
$validator = new OpenApiValidation(base_path() . '/swagger.json');
$validator->addFormat('string', 'uuid', new Uuid());

```

For more information about format registration refer to the [OpenAPI validation middleware](https://github.com/hkarlstrom/openapi-validation-middleware)package [documentation](https://github.com/hkarlstrom/openapi-validation-middleware/blob/master/README.md).

Testing
-------

[](#testing)

`softonic/openapi-validation-formats-extension` has a [PHPUnit](https://phpunit.de) test suite and a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/).

To run the tests, run the following command from the project folder.

```
$ docker-compose run tests
```

To run interactively using [PsySH](http://psysh.org/):

```
$ docker-compose run psysh
```

License
-------

[](#license)

The Apache 2.0 license. Please see [LICENSE](LICENSE) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~7 days

Total

4

Last Release

2492d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/524887?v=4)[Joskfg](/maintainers/Joskfg)[@joskfg](https://github.com/joskfg)

---

Top Contributors

[![rccrdpccl](https://avatars.githubusercontent.com/u/18526422?v=4)](https://github.com/rccrdpccl "rccrdpccl (2 commits)")[![josemanuel-cardona](https://avatars.githubusercontent.com/u/196229448?v=4)](https://github.com/josemanuel-cardona "josemanuel-cardona (1 commits)")

---

Tags

middlewarevalidationopenapiformatsoftonic

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/softonic-openapi-validation-formats-extension/health.svg)

```
[![Health](https://phpackages.com/badges/softonic-openapi-validation-formats-extension/health.svg)](https://phpackages.com/packages/softonic-openapi-validation-formats-extension)
```

###  Alternatives

[swagger-api/swagger-ui

 Swagger UI is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.

28.8k45.4M99](/packages/swagger-api-swagger-ui)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k7.8M57](/packages/dedoc-scramble)[cebe/php-openapi

Read and write OpenAPI yaml/json files and make the content accessable in PHP objects.

49815.4M86](/packages/cebe-php-openapi)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3372.3M3](/packages/darkaonline-swagger-lume)

PHPackages © 2026

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