PHPackages                             flux-eco/json-schema-instance - 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. flux-eco/json-schema-instance

ActiveFlux-app[Validation &amp; Sanitization](/categories/validation)

flux-eco/json-schema-instance
=============================

Makes a json schema instance for the transmitted values and schema

1.0.0(4y ago)0902GPL-3.0-onlyPHPPHP &gt;=8.0

Since Apr 2Pushed 4y agoCompare

[ Source](https://github.com/flux-eco/json-schema-instance)[ Packagist](https://packagist.org/packages/flux-eco/json-schema-instance)[ Docs](https://fluxlabs.ch)[ RSS](/packages/flux-eco-json-schema-instance/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (2)DependenciesVersions (3)Used By (2)

flux-eco/json-schema-instance
=============================

[](#flux-ecojson-schema-instance)

This component is supposed to make a json schema instance for the transmitted values and schema.

help and support with the development very welcome :-)

The following example application demonstrates the usage:

Usage
-----

[](#usage)

account.yaml

```
title: account
type: object
aggregateRootNames:
    - account
properties:
  personId:
    type: number
  firstname:
    type: string
  lastname:
    type: string
  email:
    type: string
  type:
    type: string
  lastChanged:
    type: string

```

getAndPrintSchemaInstance.php

```
$schema = yaml_parse(file_get_contents('account.yaml'));

$schemaInstance = fluxJsonSchemaInstance\getSchemaInstance('Emmett', $schema['properties']['firstname']);
print_r($schemaInstance);

$schemaInstance = fluxJsonSchemaInstance\getSchemaInstance('123', $schema['properties']['personId']);
print_r($schemaInstance);

```

outputs

```
Array
(
    [value] => Emmett
    [describedBy] => {"type":"string"}
)
Array
(
    [value] => 123
    [describedBy] => {"type":"number"}
)

```

Contributing 💜
--------------

[](#contributing-purple_heart)

Please ...

1. ... register an account at
2. ... create pull requests 🔥

Adjustment suggestions / bug reporting 🐾
----------------------------------------

[](#adjustment-suggestions--bug-reporting-feet)

Please ...

1. ... register an account at
2. ... ask us for a Service Level Agreement:  😘
3. ... read and create issues

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

1498d ago

Major Versions

0.0.2 → 1.0.02022-04-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/4139efd8968e3dfe84eceadd077aee74598331c8ed174b0339cc69ac445d2679?d=identicon)[mstuder](/maintainers/mstuder)

---

Top Contributors

[![mstuder](https://avatars.githubusercontent.com/u/472326?v=4)](https://github.com/mstuder "mstuder (14 commits)")

---

Tags

flux-ecofluxlabsjson-schema-instanceflux-ecofluxlabsjson-schema-instance

### Embed Badge

![Health badge](/badges/flux-eco-json-schema-instance/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1052.9M11](/packages/xemlock-htmlpurifier-html5)

PHPackages © 2026

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