PHPackages                             dhii/args-list-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. dhii/args-list-validation

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

dhii/args-list-validation
=========================

Validation of an arguments list

v0.1-alpha1(8y ago)03.9k↓100%MITPHPPHP ^5.4 | ^7.0

Since Mar 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Dhii/args-list-validation)[ Packagist](https://packagist.org/packages/dhii/args-list-validation)[ RSS](/packages/dhii-args-list-validation/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Dhii - Args List Validator
==========================

[](#dhii---args-list-validator)

[![Build Status](https://camo.githubusercontent.com/70db53227afbe89ab785e0337d45b83e1913703eb3d62c97741cb287654902fd/68747470733a2f2f7472617669732d63692e6f72672f446869692f617267732d6c6973742d76616c69646174696f6e2e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/args-list-validation)[![Code Climate](https://camo.githubusercontent.com/0e33ae03a5ebb7db068df2e0f184b302c2615f0f0c7b381cd0fd2ca56e4c73ac/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f617267732d6c6973742d76616c69646174696f6e2f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/args-list-validation)[![Test Coverage](https://camo.githubusercontent.com/c78a7b4a331521b980573a394fa39cfef5b8d0a09c91f90f978312b6a7c60f70/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f617267732d6c6973742d76616c69646174696f6e2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/args-list-validation/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/6f7ef8b734041b0b68bcffb2cf6519d1b9d4918d61cbe2d4fae604d96fe50343/68747470733a2f2f706f7365722e707567782e6f72672f646869692f617267732d6c6973742d76616c69646174696f6e2f76657273696f6e)](https://packagist.org/packages/dhii/args-list-validation)[![Latest Unstable Version](https://camo.githubusercontent.com/935e9daeb8b5cedb12ccbeff204dc17f3c25a128c91c3ad957d8764356c70033/68747470733a2f2f706f7365722e707567782e6f72672f646869692f617267732d6c6973742d76616c69646174696f6e2f762f756e737461626c65)](https://packagist.org/packages/dhii/args-list-validation)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

This package contains functionality for validation of a list of values against a specification. Currently, this specification is accepted in the form of a list of [`ReflectionParameter`](http://php.net/manual/en/class.reflectionparameter.php) criteria, which is typically retrieved via [`ReflectionFunctionAbstract#getParameters()`](http://php.net/manual/en/reflectionfunctionabstract.getparameters.php). Thus, it is possible to validate a list of arguments to determine whether any function or method can be invoked with it - without actually invoking.

It is also possible to use functionality in this package to determine whether any individual value matches a type criterion in the form of a [`ReflectionType`](http://php.net/manual/en/class.reflectiontype.php), which is typically retrieved via [`ReflectionParameter#getType()`](http://php.net/manual/en/reflectionparameter.gettype.php).

### Traits

[](#traits)

- [`GetArgsListErrorsCapableTrait`](src/GetArgsListErrorsCapableTrait.php) - Produces a list of reasons for an args list being invalid against a param spec.
- [`GetValueTypeErrorCapableTrait`](src/GetValueTypeErrorCapableTrait.php) - Produces a reason for a value being invalid against a type criteria.

###  Health Score

25

—

LowBetter than 39% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

2935d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-args-list-validation/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.7k882.5M1.1k](/packages/webmozart-assert)[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k479.5M576](/packages/composer-semver)[laminas/laminas-escaper

Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs

21986.9M123](/packages/laminas-laminas-escaper)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.2M70](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5245.4M14](/packages/stevebauman-purify)[ddeboer/vatin

Validate VAT identification numbers

1422.9M8](/packages/ddeboer-vatin)

PHPackages © 2026

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