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

ActiveMarko-module[Validation &amp; Sanitization](/categories/validation)

marko/validation
================

Validation component for Marko Framework

0.7.0(3mo ago)0656—3.3%2MITPHPPHP ^8.5

Since Mar 25Pushed 3w agoCompare

[ Source](https://github.com/marko-php/marko-validation)[ Packagist](https://packagist.org/packages/marko/validation)[ RSS](/packages/marko-validation/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependenciesVersions (18)Used By (2)

marko/validation
================

[](#markovalidation)

Input validation with built-in rules, string-based rule parsing, and custom rule support — validate data before it reaches your domain.

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

[](#installation)

```
composer require marko/validation
```

Quick Example
-------------

[](#quick-example)

```
use Marko\Validation\Contracts\ValidatorInterface;

$errors = $this->validator->validate($input, [
    'name' => 'required|string|max:100',
    'email' => 'required|email',
    'age' => 'nullable|integer|min:18',
]);

if ($errors->isNotEmpty()) {
    // handle errors
}
```

Documentation
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/validation](https://marko.build/docs/packages/validation/)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance90

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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

Total

16

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (11 commits)")

### Embed Badge

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

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

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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