PHPackages                             jobcloud/avro-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. jobcloud/avro-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

jobcloud/avro-validator
=======================

v4.0.0(3mo ago)513.5k↓19.1%2MITPHPPHP ^8.4

Since Oct 22Pushed 3mo ago17 watchersCompare

[ Source](https://github.com/jobcloud/avro-validator)[ Packagist](https://packagist.org/packages/jobcloud/avro-validator)[ RSS](/packages/jobcloud-avro-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (11)Versions (9)Used By (0)

Avro schema validator
=====================

[](#avro-schema-validator)

Install
-------

[](#install)

```
composer require jobcloud/avro-validator

```

Usage
-----

[](#usage)

```
$recordRegistry = RecordRegistry::fromSchema(file_get_contents(__DIR__ . '/schema.json'));
$validator = new Validator($recordRegistry);

var_dump($validator->validate(
    '{"payload": "here comes the payload to validate against the schema"}}',
    'marketplace.ecommerce.entity.order'
));
```

Command
-------

[](#command)

There's a command making use of the validator shipped with this package:

```
$ bin/avro-validator validate

Description:
  Validates a payload against a schema

Usage:
  validate [options] [--]   []

Arguments:
  schema                Path to the schema file
  namespace             Schema namespace
  payload               Path to the payload file

Options:
  -f, --format=FORMAT   Output format of the result [default: "pretty"]
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor3

3 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 ~322 days

Recently: every ~283 days

Total

7

Last Release

103d ago

Major Versions

v1.0.1 → v2.0.02022-12-30

v2.2.0 → v3.0.02025-03-14

v3.0.0 → v4.0.02026-02-04

PHP version history (4 changes)v1.0.0PHP &gt;=7.3

v2.0.0PHP ^8.0

v3.0.0PHP ^8.3

v4.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/f71a4c03aabca945697c953e2aa8bd9d1f5fc32d991f97c5183d5e2934c98639?d=identicon)[bacontastic](/maintainers/bacontastic)

---

Top Contributors

[![ruzakaranbol](https://avatars.githubusercontent.com/u/6246597?v=4)](https://github.com/ruzakaranbol "ruzakaranbol (5 commits)")[![TiMESPLiNTER](https://avatars.githubusercontent.com/u/598854?v=4)](https://github.com/TiMESPLiNTER "TiMESPLiNTER (4 commits)")[![bajdzun](https://avatars.githubusercontent.com/u/31182987?v=4)](https://github.com/bajdzun "bajdzun (3 commits)")[![ig0rN](https://avatars.githubusercontent.com/u/35487049?v=4)](https://github.com/ig0rN "ig0rN (2 commits)")[![dradisic](https://avatars.githubusercontent.com/u/50864256?v=4)](https://github.com/dradisic "dradisic (2 commits)")[![nick-zh](https://avatars.githubusercontent.com/u/3214182?v=4)](https://github.com/nick-zh "nick-zh (1 commits)")[![nikolatrajkovic994](https://avatars.githubusercontent.com/u/129766594?v=4)](https://github.com/nikolatrajkovic994 "nikolatrajkovic994 (1 commits)")[![SokolovAlexanderV](https://avatars.githubusercontent.com/u/21956545?v=4)](https://github.com/SokolovAlexanderV "SokolovAlexanderV (1 commits)")[![danielmitd](https://avatars.githubusercontent.com/u/217588?v=4)](https://github.com/danielmitd "danielmitd (1 commits)")

---

Tags

avrophpvalidator

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jobcloud-avro-validator/health.svg)

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

###  Alternatives

[eniams/safe-migrations

Warn you when a migration is unsafe

56237.5k](/packages/eniams-safe-migrations)

PHPackages © 2026

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