PHPackages                             elife/api-validator - 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. elife/api-validator

ActiveLibrary[API Development](/categories/api)

elife/api-validator
===================

eLife Sciences API validator

v1.1.0(1y ago)026.8k↓33.3%[5 PRs](https://github.com/elifesciences/api-validator-php/pulls)MITPHPPHP ^7.1 | ^8.0CI passing

Since Oct 18Pushed 1mo ago9 watchersCompare

[ Source](https://github.com/elifesciences/api-validator-php)[ Packagist](https://packagist.org/packages/elife/api-validator)[ RSS](/packages/elife-api-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (10)Used By (0)

eLife API Validator for PHP
===========================

[](#elife-api-validator-for-php)

This library provides a validator for the [eLife Sciences API](https://github.com/elifesciences/api-raml).

It checks HTTP requests/responses to make sure that they match the specification. Currently only the body of the message is validated against the schema for that media type.

Dependencies
------------

[](#dependencies)

- [Composer](https://getcomposer.org/)
- PHP 7

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

[](#installation)

Execute `composer require elife/api-validator:dev-master`.

Usage
-----

[](#usage)

To validate a message:

```
use eLife\ApiValidator\MessageValidator\JsonMessageValidator;
use eLife\ApiValidator\SchemaFinder\PathBasedSchemaFinder;
use JsonSchema\Validator;

$messageValidator = new JsonMessageValidator(new PathBasedSchemaFinder('/path/to/api/schemas'), new Validator());

$messageValidator->validate($message);
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance66

Regular maintenance activity

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

2

Last Release

571d ago

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.1.0PHP ^7.1 | ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/375812?v=4)[Scott Aubrey](/maintainers/scottaubrey)[@scottaubrey](https://github.com/scottaubrey)

---

Top Contributors

[![scottaubrey](https://avatars.githubusercontent.com/u/375812?v=4)](https://github.com/scottaubrey "scottaubrey (15 commits)")[![thewilkybarkid](https://avatars.githubusercontent.com/u/1784740?v=4)](https://github.com/thewilkybarkid "thewilkybarkid (10 commits)")[![giorgiosironi](https://avatars.githubusercontent.com/u/160299?v=4)](https://github.com/giorgiosironi "giorgiosironi (4 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (3 commits)")[![lsh-0](https://avatars.githubusercontent.com/u/2142748?v=4)](https://github.com/lsh-0 "lsh-0 (2 commits)")[![nlisgo](https://avatars.githubusercontent.com/u/383397?v=4)](https://github.com/nlisgo "nlisgo (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/elife-api-validator/health.svg)

```
[![Health](https://phpackages.com/badges/elife-api-validator/health.svg)](https://phpackages.com/packages/elife-api-validator)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69433.0M114](/packages/algolia-algoliasearch-client-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)

PHPackages © 2026

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