PHPackages                             scedel/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. scedel/schema

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

scedel/schema
=============

Typed schema repository builder for Scedel

0.2.1(4mo ago)062MITPHPPHP ^8.3CI failing

Since Feb 18Pushed 4mo agoCompare

[ Source](https://github.com/ScedelLang/php-scedel-schema)[ Packagist](https://packagist.org/packages/scedel/schema)[ RSS](/packages/scedel-schema/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (2)

scedel/schema
=============

[](#scedelschema)

[![logo](https://raw.githubusercontent.com/ScedelLang/grammar/5f1e7572f328d657c726a2fcaeaf53d9f6863d6a/logo.svg)](https://raw.githubusercontent.com/ScedelLang/grammar/5f1e7572f328d657c726a2fcaeaf53d9f6863d6a/logo.svg)

Intermediate layer between `scedel/parser` AST and downstream packages (validator/codegen).

RFC support
-----------

[](#rfc-support)

- [Target RFC: `0.14.2`](https://github.com/ScedelLang/grammar/blob/main/RFC-Scedel-0.14.2.md)

What it provides
----------------

[](#what-it-provides)

- Recursive include loading (DFS include-first)
- Include cycle detection
- Diamond include graphs (shared canonical targets are loaded once)
- Warnings for direct duplicate includes in a single file
- Type merge (`type expr` + annotation-only declarations)
- Validator merge by `(targetType, name)` with strict structural duplicate checks
- Immutable `SchemaRepository` with types, validators, annotation trees, and document include graph

Usage
-----

[](#usage)

```
use Scedel\Parser\ParserService;
use Scedel\Schema\Infrastructure\FilesystemIncludeResolver;
use Scedel\Schema\Infrastructure\FilesystemSourceLoader;
use Scedel\Schema\RepositoryBuilder;

$builder = new RepositoryBuilder(
    new ParserService(),
    new FilesystemIncludeResolver(),
    new FilesystemSourceLoader(),
);

$repository = $builder->buildFromFile('/absolute/path/schema.scedel');
$type = $repository->getType('Post');
$validator = $repository->getValidator('String', 'noAds');
```

`buildFromString()` supports includes if `baseUri` is provided.

```
$repository = $builder->buildFromString(
    $source,
    'inline.scedel',
    'file:///absolute/path/inline.scedel',
);
```

Schema info utility
-------------------

[](#schema-info-utility)

Print human-readable schema info (version, documents/includes, types with constraints, validators, annotations):

```
php bin/describe-schema.php /absolute/path/schema.scedel
```

Include builtin types/validators in output:

```
php bin/describe-schema.php --show-builtins /absolute/path/schema.scedel
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance75

Regular maintenance activity

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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

Total

2

Last Release

134d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bfd127816701f0173c1cf9550083b9509e7686be397e4ef0eaf720441c8983c?d=identicon)[reposlav](/maintainers/reposlav)

---

Top Contributors

[![pilov-pa](https://avatars.githubusercontent.com/u/6916854?v=4)](https://github.com/pilov-pa "pilov-pa (7 commits)")

---

Tags

jsonschematypesscedel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scedel-schema/health.svg)

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

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k334.7M789](/packages/justinrainbow-json-schema)[hasbridge/json-schema-validator

PHP 5.3 implementation of json schema validation

124460.4k3](/packages/hasbridge-json-schema-validator)[psx/schema

Parse and generate data schema formats

57245.5k24](/packages/psx-schema)[juststeveking/resume-php

A PHP library for building and working with the JSON resume schema.

1061.0k](/packages/juststeveking-resume-php)[open-code-modeling/json-schema-to-php

Parses JSON schema files and provides an API to easily generate code from JSON schema.

111.0k2](/packages/open-code-modeling-json-schema-to-php)

PHPackages © 2026

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