PHPackages                             stubbles/input - 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. stubbles/input

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

stubbles/input
==============

Stubbles Input enables to handle input data via validation and filtering.

v10.0.0(5mo ago)33.4k2[1 PRs](https://github.com/stubbles/stubbles-input/pulls)2BSD-3-ClausePHPPHP ^8.3CI passing

Since May 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/stubbles/stubbles-input)[ Packagist](https://packagist.org/packages/stubbles/input)[ Docs](http://stubbles.net/)[ RSS](/packages/stubbles-input/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (40)Used By (2)

stubbles/input
==============

[](#stubblesinput)

One of the most common task in applications is to read, validate and filter input data. *stubbles/input* provides means to do exactly that, by providing a Request API in order to validate and filter input values.

Build status
------------

[](#build-status)

[![Tests](https://github.com/stubbles/stubbles-input/workflows/Tests/badge.svg)](https://github.com/stubbles/stubbles-input/workflows/Tests/badge.svg)

[![Latest Stable Version](https://camo.githubusercontent.com/3503c437598d7e94ee33be2f4f58a7e2542b30de1d90cda1ff7186219f30d0ea/68747470733a2f2f706f7365722e707567782e6f72672f73747562626c65732f696e7075742f76657273696f6e2e706e67)](https://packagist.org/packages/stubbles/input)[![Latest Unstable Version](https://camo.githubusercontent.com/c6e475c7f6e4437641267e828bee5ca98bef521e97849255e93aaebb998fe3c4/68747470733a2f2f706f7365722e707567782e6f72672f73747562626c65732f696e7075742f762f756e737461626c652e706e67)](//packagist.org/packages/stubbles/input)

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

[](#installation)

*stubbles/input* is distributed as [Composer](https://getcomposer.org/)package. To install it as a dependency of your package use the following command:

```
composer require "stubbles/input": "^9.0"

```

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

[](#requirements)

*stubbles/input* requires at least PHP 8.2.

Request parameters
------------------

[](#request-parameters)

The Request API provides access to request parameters in different ways:

### `getParamNames(): array`

[](#getparamnames-array)

Returns a list of all parameter names.

### `paramErrors(): ParamErrors`

[](#paramerrors-paramerrors)

Returns a list of all parameter errors that occurred during reading single request parameters.

### `hasParam(string $paramName): bool`

[](#hasparamstring-paramname-bool)

Checks if a parameter with the given name is present in the current request.

### `validateParam(string $paramName): ValueValidator`

[](#validateparamstring-paramname-valuevalidator)

Returns a value validator with methods that can be used to check if the parameter with the given name is valid.

See [validate parameters details](docs/validate_params.md).

### `readParam(string $paramName): ValueReader`

[](#readparamstring-paramname-valuereader)

Returns a value reader that can be used to read the parameter with the given name. In case the parameter does not exist the reader will return `null`.

See [read parameters details](docs/read_params.md).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 65.2% 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 ~130 days

Recently: every ~553 days

Total

39

Last Release

160d ago

Major Versions

v5.2.1 → v6.0.02016-06-12

v6.0.0 → v7.0.02016-07-31

v7.0.0 → v8.0.02019-11-07

v8.0.2 → v9.0.02024-01-16

v9.0.0 → v10.0.02025-11-30

PHP version history (7 changes)v2.0.0-beta1PHP &gt;=5.3.0

v2.5.0PHP &gt;=5.4.0

v6.0.0PHP &gt;=5.6.0

v7.0.0PHP ^7.0

v8.0.0PHP ^7.3

v9.0.0PHP ^8.2

v10.0.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![mikey179](https://avatars.githubusercontent.com/u/190475?v=4)](https://github.com/mikey179 "mikey179 (43 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stubbles-input/health.svg)

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

###  Alternatives

[webmozart/assert

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

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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