PHPackages                             como/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. [HTTP &amp; Networking](/categories/http)
4. /
5. como/input

ActiveLibrary[HTTP &amp; Networking](/categories/http)

como/input
==========

A Input class for that makes it easier for accessing user input

1.0.2(12y ago)132Apache-2.0PHPPHP &gt;=5.3.0

Since Feb 6Pushed 12y agoCompare

[ Source](https://github.com/rmccullagh/como-http)[ Packagist](https://packagist.org/packages/como/input)[ Docs](http://github.com/rmccullagh/como-http)[ RSS](/packages/como-input/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Input
=====

[](#input)

This is a library that makes it easier to safely retrieve user input. The class provides an abstraction to the superglobals $\_GET and $\_POST arrays. It is typically unsafe to operate directly on those arrays as it is easy to forget to do the validation neccessary to prevent unexpected behavior.

For example if your url is a GET request like this: example.com/index.php?id\[\]=111, then you would normally access that value from the 'id' subscript of the $\_POST array. However, if your application then proceeds to try and pass that value to a method that requires a string type value, you will have trouble because $\_POST\['id'\] is in fact an array and not a string.

The Input class handles these things automatically for you by peforming these checks. It also sanitzes all values subsequently making an input value safe for output on the client such as a web browser.

To Use
======

[](#to-use)

require **DIR** . '/vendor/autoload.php';

use \\Como\\Http\\Input;

// this will return the default value if the q request is an array var\_dump(Input::get('q', Input::FILTER\_ARRAY, $default = 'default value'));

// this will allow an array var\_dump(Input::get('q', Input::NO\_FILTER\_ARRAY, $default = 'default value'));

To install via composer:
========================

[](#to-install-via-composer)

create a composer.json file with this:

{ "require": { "como/input": "dev-master" } }

then run composer install in the directory of your choice

To install from GitHub
======================

[](#to-install-from-github)

git clone

Then open up the test.php file and take a look at the examples.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Total

2

Last Release

4479d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1653012?v=4)[Ryan McCullagh](/maintainers/rmccullagh)[@rmccullagh](https://github.com/rmccullagh)

---

Top Contributors

[![rmccullagh](https://avatars.githubusercontent.com/u/1653012?v=4)](https://github.com/rmccullagh "rmccullagh (1 commits)")

---

Tags

httpinput

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-message

Common interface for HTTP messages

7.1k1.0B5.5k](/packages/psr-http-message)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k314.0M3.4k](/packages/symfony-http-client)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)

PHPackages © 2026

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