PHPackages                             browserfs/runtime - 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. browserfs/runtime

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

browserfs/runtime
=================

A library for complex data type checking and validating

v1.1.6(9y ago)0511MITPHPPHP &gt;=5.4

Since Jan 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/browserfs/runtime)[ Packagist](https://packagist.org/packages/browserfs/runtime)[ Docs](https://github.com/browserfs/runtime)[ RSS](/packages/browserfs-runtime/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

Runtime Types
=============

[](#runtime-types)

A PHP library used to test at runtime if a value matches a pattern ( or a type ).

[![Build Status](https://camo.githubusercontent.com/3de06f510b27bb31f7b7e00ecb96e1541aae9db57e988ea805a3389c576953ba/68747470733a2f2f7472617669732d63692e6f72672f62726f7773657266732f72756e74696d652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/browserfs/runtime)

Why?
----

[](#why)

How many times, and how many lines of code you had to write in order to check the type of data and the values in data provided from webservices, user input, forms, or parsed files?

Example 1:

```

```

Example 2:

```
