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

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

shrink0r/php-schema
===================

Lib for building and validating array structures in php.

0.3.0(9y ago)98152[5 issues](https://github.com/shrink0r/php-schema/issues)1MITPHPPHP &gt;=5.6.1

Since Oct 22Pushed 9y ago5 watchersCompare

[ Source](https://github.com/shrink0r/php-schema)[ Packagist](https://packagist.org/packages/shrink0r/php-schema)[ RSS](/packages/shrink0r-php-schema/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (4)Used By (1)

php-schema
==========

[](#php-schema)

[![Latest-Stable-Version](https://camo.githubusercontent.com/e40dc60ca87e53f000ebefddd980a54ca59173562e7687484aba420e2caa0545/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f7068702d736368656d612f762f737461626c652e737667)](https://packagist.org/packages/shrink0r/php-schema "shrink0r/php-schema on packagist")[![License](https://camo.githubusercontent.com/a5d23f8e88b8d703306160d4951e572ab736b3460116ea3f7d6a4c955fb14fb4/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f7068702d736368656d612f6c6963656e73652e737667)](LICENSE.md "license file with full text of the license")[![Latest Unstable Version](https://camo.githubusercontent.com/43fcb65b95d79fd20a81474ac9c986aff218815ff22ae3ca7888451590b46b7c/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f7068702d736368656d612f762f756e737461626c652e737667)](https://packagist.org/packages/shrink0r/php-schema "shrink0r/php-schema on packagist")[![Build Status](https://camo.githubusercontent.com/2843b756ca57bc5ca7ebeab00a9eb83a48f81996e00d51dae5cc130e4dcfd45a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f736872696e6b30722f7068702d736368656d612e706e67)](http://travis-ci.org/shrink0r/php-schema "shrink0r/php-schema on travis-ci")[![Coverage Status](https://camo.githubusercontent.com/d288f2cb073ba3659eb3f6b1c9481676a8fb8ac1e3c82b17eb1ce96eb7c600ed/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f736872696e6b30722f7068702d736368656d612f62616467652e706e67)](https://coveralls.io/r/shrink0r/php-schema "shrink0r/php-schema on coveralls")[![Code Climate](https://camo.githubusercontent.com/eb7cf324a5db1d8025484b03eb06f95976c0b7dbf8af622adf414b4384d63ea3/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f736872696e6b30722f7068702d736368656d612f6261646765732f6770612e737667)](https://codeclimate.com/github/shrink0r/php-schema)[![Dependency Status](https://camo.githubusercontent.com/95202e370a0c747874411406e5415624839cb697c83c33febbc6eedda18dbb65/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537366463633334376263363831303034613366396236382f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/576dcc347bc681004a3f9b68 "shrink0r/php-schema on versioneye")[![Stories in Ready](https://camo.githubusercontent.com/ff1a5a78b4f67a08ee7930e4758e6a017d2c9282c693a7fcc5cc0f39b2981ad7/68747470733a2f2f62616467652e776166666c652e696f2f736872696e6b30722f7068702d736368656d612e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/shrink0r/php-schema "shrink0r/php-schema on waffle")[![Total Composer Downloads](https://camo.githubusercontent.com/b1df3a9bef66cd1a1af5afbacce3925182d7867e5e2f6a727ce87038f1a15f66/68747470733a2f2f706f7365722e707567782e6f72672f736872696e6b30722f7068702d736368656d612f642f746f74616c2e706e67)](https://packagist.org/packages/shrink0r/php-schema "shrink0r/php-schema on packagist")

Purpose
-------

[](#purpose)

Lib for building and validating array structures in php.

Requirements and installation
-----------------------------

[](#requirements-and-installation)

- PHP v5.6+

Install the library via [Composer](http://getcomposer.org/):

`./composer.phar require shrink0r/php-schema [optional version]`

Adding it manually as a vendor library requirement to the `composer.json` file of your project works as well:

```
{
    "require": {
        "shrink0r/php-schema": "^0.2"
    }
}
```

Alternatively, you can download a release archive from the [available releases](https://github.com/shrink0r/php-schema/releases) page.

Documentation
-------------

[](#documentation)

- [Usage](docs/usage.md)

More tbd.

Community
---------

[](#community)

None, but you may join the freenode IRC `#honeybee` channel anytime. :-)

Contributors
------------

[](#contributors)

Please contribute by [forking](http://help.github.com/forking/) and sending a [pull request](https://help.github.com/articles/about-pull-requests/). More information can be found in the [`CONTRIBUTING.md`](CONTRIBUTING.md) file. The authors and contributors are mentioned in the [github contributors graph](https://github.com/shrink0r/php-schema/graphs/contributors) of this repository.

The code tries to adhere to the following PHP-FIG standards: [PSR-4](http://www.php-fig.org/psr/psr-4/ "PSR-4 Autoloading Standard"), [PSR-1](http://www.php-fig.org/psr/psr-1/ "PSR-1 Basic Coding Standard") and [PSR-2](http://www.php-fig.org/psr/psr-2/ "PSR-2 Coding Style Guide").

Changelog
---------

[](#changelog)

See [`CHANGELOG.md`](CHANGELOG.md) for more information about changes.

License
-------

[](#license)

This project is MIT licensed. See the [linked license](LICENSE.md) for details.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.7% 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 ~2 days

Total

3

Last Release

3535d ago

### Community

Maintainers

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

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

---

Top Contributors

[![shrink0r](https://avatars.githubusercontent.com/u/202678?v=4)](https://github.com/shrink0r "shrink0r (88 commits)")[![ddelbondio](https://avatars.githubusercontent.com/u/180071?v=4)](https://github.com/ddelbondio "ddelbondio (8 commits)")[![MrHash](https://avatars.githubusercontent.com/u/390925?v=4)](https://github.com/MrHash "MrHash (1 commits)")

---

Tags

schemavalidation

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

65243.6M288](/packages/opis-json-schema)[romaricdrigon/metayaml

Using \[Yaml|Xml|json\] schemas files to validate \[Yaml|Xml|json\]

103312.7k8](/packages/romaricdrigon-metayaml)[evaisse/php-json-schema-generator

A JSON Schema Generator.

20316.0k1](/packages/evaisse-php-json-schema-generator)[romegasoftware/laravel-schema-generator

Generate TypeScript Zod validation schemas from Laravel validation rules

3219.4k](/packages/romegasoftware-laravel-schema-generator)

PHPackages © 2026

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