PHPackages                             i-am-tom/schemer - 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. i-am-tom/schemer

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

i-am-tom/schemer
================

A Joi-like interface for validating data structures.

2.1.0(9y ago)181.3k3[3 issues](https://github.com/i-am-tom/schemer/issues)ISCPHP

Since Jul 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/i-am-tom/schemer)[ Packagist](https://packagist.org/packages/i-am-tom/schemer)[ RSS](/packages/i-am-tom-schemer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Schemer [![Build Status](https://camo.githubusercontent.com/f700763c1c652b95525b142f845f455122714b09ddd595406c7682048732af02/68747470733a2f2f7472617669732d63692e6f72672f692d616d2d746f6d2f736368656d65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/i-am-tom/schemer)
=======================================================================================================================================================================================================================================================================================

[](#schemer-)

```
composer require i-am-tom/schemer

```

Schemer is a [Joi](https://github.com/hapijs/joi)-inspired library for validating and formatting data structures. Complex structures' validators can be constructed by composition.

Quickstart
----------

[](#quickstart)

The full API can be accessed via the `Schemer\Validator` and `Schemer\Formatter` sets of static functions. We'll bring them in with an alias:

```
