PHPackages                             mrjulio/rapture-validation - 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. mrjulio/rapture-validation

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

mrjulio/rapture-validation
==========================

Rapture validation component

v1.0.2(8y ago)014MITPHPPHP &gt;=5.4.0

Since Jun 15Pushed 8y agoCompare

[ Source](https://github.com/mrjulio/rapture-validation)[ Packagist](https://packagist.org/packages/mrjulio/rapture-validation)[ Docs](http://rapture.iuliann.ro)[ RSS](/packages/mrjulio-rapture-validation/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Rapture PHP Validation
======================

[](#rapture-php-validation)

[![PhpVersion](https://camo.githubusercontent.com/3e8a799ec9cdf8140f4d08d8285359ff7d3401ce3ae539aff323aeb0ab85d90c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e342e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](#)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](#)

Simple validation for PHP.

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

[](#requirements)

- PHP v5.4.0
- php-date, php-filter, php-json, php-mbstring, php-pcre

Install
-------

[](#install)

```
composer require mrjulio/rapture-validation

```

Quick Start
-----------

[](#quick-start)

```
$validator = new Email();
$validator->isValid('test@gmail.com'); // true
$validator->isValid('test[at]gmail.com'); // false

$validator = new Country(Country::ISO2);
$validator->isValid('us'); // true
$validator->isValid('ux'); // false

// Group Validator
$validator = new Group([
    'email' => [
        ['required'],
        ['email', null, 'Invalid email format :value'],
    ],
    'age' => [
        ['optional'],
        ['number', null, 'Invalid age'],
        ['between', [13, 60], 'You have to be at least :min years old!'],
    ],
    'country' => [
        ['country', [Country::ISO3], 'Invalid ISO3 for country ":value"'],
    ]
]);
$validator->isValid([
    'email' => 'test@gmail.com',
    'age' => 1,
    'country' => 'xxx'
]); // false
$validator->getFirstError(); // Invalid ISO3 for country "xxx"
```

### List of validators

[](#list-of-validators)

CategoryValidatorStatusBasicOptional✓Required✓NotEmpty✓IsEmpty✓NotNull✓IsNull✓IsTrue✓IsFalse✓Type✓StringBetween✓Email✓Length✓Url✓Regex✓IpUuidComparisonBetween✓EqualTo✓NotEqualTo✓IdenticalTo✓NotIdenticalTo✓LessThan✓LessThanOrEqualTo✓GreaterThan✓GreaterThanOrEqualTo✓TimeDateDateTimeTimeDateRangeDateTimeRangeTimeRangeCollectionChoiceGroup✓In✓CountUniquePropelUniqueLanguageLocale✓Country✓FileFileSize✓FileType✓FinancialBicCardSchemeCurrency✓LuhnIbanIsbnIssnOtherCallback✓Username✓Password✓ReCaptcha✓EmailDomain✓Cnp✓About
-----

[](#about)

### Author

[](#author)

Iulian N. `rapture@iuliann.ro`

### Testing

[](#testing)

```
cd ./test && phpunit

```

### License

[](#license)

Rapture PHP Validation is licensed under the MIT License - see the `LICENSE` file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3098d ago

### Community

Maintainers

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

---

Top Contributors

[![mrjulio](https://avatars.githubusercontent.com/u/1187463?v=4)](https://github.com/mrjulio "mrjulio (7 commits)")

---

Tags

library

### Embed Badge

![Health badge](/badges/mrjulio-rapture-validation/health.svg)

```
[![Health](https://phpackages.com/badges/mrjulio-rapture-validation/health.svg)](https://phpackages.com/packages/mrjulio-rapture-validation)
```

###  Alternatives

[inhere/php-validate

generic data validate, filter library of the php

26787.4k13](/packages/inhere-php-validate)[runz0rd/mapper-php

Model mapping, unmapping and validation

17451.9k2](/packages/runz0rd-mapper-php)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)[erlandmuchasaj/sanitize

A package to sanitize your input.

146.0k](/packages/erlandmuchasaj-sanitize)[rodrigojavornik/php-cleanup

A PHP Sanitation Library

121.6k](/packages/rodrigojavornik-php-cleanup)

PHPackages © 2026

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