PHPackages                             dutchcodingcompany/laravel-json-schema - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. dutchcodingcompany/laravel-json-schema

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

dutchcodingcompany/laravel-json-schema
======================================

Adds a service provider for json schemas

3.0.2(9mo ago)01.4k↓33.3%1MITPHPPHP ^8.2

Since Jun 9Pushed 9mo ago4 watchersCompare

[ Source](https://github.com/DutchCodingCompany/laravel-json-schema)[ Packagist](https://packagist.org/packages/dutchcodingcompany/laravel-json-schema)[ Docs](https://github.com/dutchcodingcompany)[ RSS](/packages/dutchcodingcompany-laravel-json-schema/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (19)Used By (0)

Json Schema
===========

[](#json-schema)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e340f24f0702bbb32949c08c3b00572c556e3aca3487a96ea640b22b47ea9c7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6475746368636f64696e67636f6d70616e792f6c61726176656c2d6a736f6e2d736368656d612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/laravel-json-schema)[![Total Downloads](https://camo.githubusercontent.com/d8e8065ae4906e91a6a16d733ae8590354cec97cf94a9e5f6580d4c21ed5ed30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475746368636f64696e67636f6d70616e792f6c61726176656c2d6a736f6e2d736368656d612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/laravel-json-schema)

This package makes it easy to use `swaggest/json-schema` in laravel.

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

[](#installation)

You can install the package via composer:

```
composer require dutchcodingcompany/laravel-json-schema
```

Usage
-----

[](#usage)

1. Create a json schema in the schema directory, eg. `storage/app/schema/example.json`
2. Reference the schema in the validator using one of the rules:
    - `new \DutchCodingCompany\LaravelJsonSchema\Rules\JsonSchemaRule('example')`
    - `new \DutchCodingCompany\LaravelJsonSchema\Rules\JsonSchemaAttributeRule('type', TypeEnum::class)` (be careful to validate the attribute `type` in this case)

To customize the schema directory, use environment variable `JSON_SCHEMA_DIRECTORY` or publish the config file.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance58

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

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

Recently: every ~2 days

Total

15

Last Release

270d ago

Major Versions

0.4.1 → 1.0.02025-05-12

1.0.0 → 2.0.02025-08-05

2.2.3 → 3.0.02025-08-13

PHP version history (4 changes)0.1.0PHP ^7.4

0.1.1PHP ^7.4 | ^8.0

1.0.0PHP ^8.0

2.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![dododedodonl](https://avatars.githubusercontent.com/u/100052?v=4)](https://github.com/dododedodonl "dododedodonl (31 commits)")[![ThijsLacquet](https://avatars.githubusercontent.com/u/28624985?v=4)](https://github.com/ThijsLacquet "ThijsLacquet (1 commits)")

---

Tags

jsonlaravelschemadutchcodingcompanydcc

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dutchcodingcompany-laravel-json-schema/health.svg)

```
[![Health](https://phpackages.com/badges/dutchcodingcompany-laravel-json-schema/health.svg)](https://phpackages.com/packages/dutchcodingcompany-laravel-json-schema)
```

###  Alternatives

[json-mapper/laravel-package

The JsonMapper package for Laravel

25170.4k3](/packages/json-mapper-laravel-package)

PHPackages © 2026

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