PHPackages                             ulrack/validator - 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. ulrack/validator

Abandoned → [grizz-it/validator](/?search=grizz-it%2Fvalidator)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

ulrack/validator
================

A package containing validators.

1.0.1(6y ago)11962MITPHPPHP ^7.2

Since Jul 9Pushed 6y ago1 watchersCompare

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

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

DEPRECATION NOTICE: this package has been moved and improved at [grizz-it/validator](https://github.com/grizz-it/validator)
===========================================================================================================================

[](#deprecation-notice-this-package-has-been-moved-and-improved-at-grizz-itvalidator)

[![Build Status](https://camo.githubusercontent.com/7b4d00acb0f80e9bbc5efada5a00bd9efa6a56e21406ee2177381877da4835ae/68747470733a2f2f7472617669732d63692e636f6d2f756c7261636b2f76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ulrack/validator)

Ulrack Validator
================

[](#ulrack-validator)

This package contains an interface and a handful of validators. These validators will validate a predetermined type of data against a single (or set of) rule(s). If the type does not match it will always return true.

Installation
------------

[](#installation)

To install the package run the following command:

```
composer require ulrack/validator

```

Usage
-----

[](#usage)

The validators are sorted by their type they will validate against.

### Chain

[](#chain)

Chain validators are validators which verify the outcome of multiple nested validators against data and contain their own logic.

- [AndValidator](src/Component/Chain/AndValidator.php)
- [OrValidator](src/Component/Chain/OrValidator.php)
- [OneOfValidator](src/Component/Chain/OneOfValidator.php)

### Iterable

[](#iterable)

Iterable validators work with numeric arrays.

- [ContainsValidator](src/Component/Iterable/ContainsValidator.php)
- [ItemsValidator](src/Component/Iterable/ItemsValidator.php)
- [MaxItemsValidator](src/Component/Iterable/MaxItemsValidator.php)
- [MinItemsValidator](src/Component/Iterable/MinItemsValidator.php)
- [UniqueItemsValidator](src/Component/Iterable/UniqueItemsValidator.php)

### Logical

[](#logical)

Logical validators are type independent logical validators.

- [AlwaysValidator](src/Component/Logical/AlwaysValidator.php)
- [ConstValidator](src/Component/Logical/ConstValidator.php)
- [EnumValidator](src/Component/Logical/EnumValidator.php)
- [IfThenElseValidator](src/Component/Logical/IfThenElseValidator.php)
- [NotValidator](src/Component/Logical/NotValidator.php)

### Numeric

[](#numeric)

Numeric validators work with numbers.

- [ExclusiveMaximumValidator](src/Component/Numeric/ExclusiveMaximumValidator.php)
- [ExclusiveMinimumValidator](src/Component/Numeric/ExclusiveMinimumValidator.php)
- [MaximumValidator](src/Component/Numeric/MaximumValidator.php)
- [MinimumValidator](src/Component/Numeric/MinimumValidator.php)
- [MultipleOfValidator](src/Component/Numeric/MultipleOfValidator.php)

### Object

[](#object)

Object validators verify the contents of objects.

- [DependencyValidator](src/Component/Object/DependencyValidator.php)
- [MaxPropertiesValidator](src/Component/Object/MaxPropertiesValidator.php)
- [MinPropertiesValidator](src/Component/Object/MinPropertiesValidator.php)
- [PropertiesValidator](src/Component/Object/PropertiesValidator.php)
- [RequiredValidator](src/Component/Object/RequiredValidator.php)

### Textual

[](#textual)

Textual validators work with strings.

- [MaxLengthValidator](src/Component/Textual/MaxLengthValidator.php)
- [MinLengthValidator](src/Component/Textual/MinLengthValidator.php)
- [PatternValidator](src/Component/Textual/PatternValidator.php)

### Type

[](#type)

Type validators verify the type of the data. For example: whether the supplied data is of the type string, or integer.

- [ArrayValidator](src/Component/Type/ArrayValidator.php)
- [BooleanValidator](src/Component/Type/BooleanValidator.php)
- [IntegerValidator](src/Component/Type/IntegerValidator.php)
- [NullValidator](src/Component/Type/NullValidator.php)
- [NumberValidator](src/Component/Type/NumberValidator.php)
- [ObjectValidator](src/Component/Type/ObjectValidator.php)
- [StringValidator](src/Component/Type/StringValidator.php)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

MIT License
-----------

[](#mit-license)

Copyright (c) 2019 GrizzIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

2261d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8682881?v=4)[GrizzIT](/maintainers/GrizzIT)[@grizzit](https://github.com/grizzit)

---

Top Contributors

[![mfrankruijter](https://avatars.githubusercontent.com/u/8653925?v=4)](https://github.com/mfrankruijter "mfrankruijter (3 commits)")

---

Tags

phpulrackvalidatorvalidator

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ulrack-validator/health.svg)

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

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M205](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64236.9M186](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15544.9M188](/packages/laminas-laminas-validator)

PHPackages © 2026

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