PHPackages                             ztsu/irritator - 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. ztsu/irritator

ActiveLibrary

ztsu/irritator
==============

Schema-oriented assertion library

013PHP

Since Sep 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ztsu/irritator)[ Packagist](https://packagist.org/packages/ztsu/irritator)[ RSS](/packages/ztsu-irritator/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Ztsu\\Irritator
===============

[](#ztsuirritator)

Schema-oriented assertion libary for PHP

Requirements
------------

[](#requirements)

- PHP 7.\*

Install
-------

[](#install)

```
$ composer require ztsu/irritator

```

Basic usage
-----------

[](#basic-usage)

```

use Ztsu\Irritator as Assert;

$schema = Assert\hashmap(
  [
    "name" => Assert\isString(),
  ]
);

$value = [
  "name" => "Test",
];

$schema->valid($value);

```

Assertions
----------

[](#assertions)

### Basic

[](#basic)

- int
- number
- string
- boolean
- list
- hashmap
- same
- equal
- regexp

### Combinators

[](#combinators)

- one of
- null or

### Numbers

[](#numbers)

- less than
- greater than
- less or equal
- greater or equal

### Strings

[](#strings)

- email
- url
- phone
- ip v4
- ip v6
- uuid

### Dates

[](#dates)

- ISO 8601

### Hashmap

[](#hashmap)

- required
- one of keys

License
-------

[](#license)

Irritator is licensed under the MIT License. For details see the LICENSE.md file.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3930097a2c0164318282dbee9301e8aece70a99974103231cf597c3a08e4faf0?d=identicon)[ztsu](/maintainers/ztsu)

---

Top Contributors

[![ztsu](https://avatars.githubusercontent.com/u/317150?v=4)](https://github.com/ztsu "ztsu (1 commits)")

### Embed Badge

![Health badge](/badges/ztsu-irritator/health.svg)

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

PHPackages © 2026

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