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 3w 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 41% 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

1546d ago

Major Versions

0.0.2 → 1.0.02022-04-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/472326?v=4)[Martin Studer](/maintainers/mstuder)[@mstuder](https://github.com/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)
```

PHPackages © 2026

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