PHPackages                             christopher-paul-shaw/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. christopher-paul-shaw/input

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

christopher-paul-shaw/input
===========================

Object For Securing Input

0.0.1(7y ago)0267PHPPHP ^7.1CI failing

Since Feb 1Pushed 6y agoCompare

[ Source](https://github.com/christopher-paul-shaw/Input)[ Packagist](https://packagist.org/packages/christopher-paul-shaw/input)[ RSS](/packages/christopher-paul-shaw-input/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Summary
=======

[](#summary)

This class blanks out the Super Globals $\_POST and $\_GET and stores their contents within the class. Allowing better control over the input and what code can access it.

Basic Usage
===========

[](#basic-usage)

```
$input = new Input();
echo $input->get('id');
echo $input->post('id');

```

Default Parameters
==================

[](#default-parameters)

Default Paramaters can be passed as the second option

```
$input->get('test','default value here');

```

Sanitization
============

[](#sanitization)

Strips Tags by default, can be disabled by passing false as third option.

```
$input->get('test','false',false);

```

Test
====

[](#test)

As features are added, there will be new tests to prove they work as intended. You can run the tests yourself using the following command.

```
vendor/bin/phpunit test

```

[![PHPUnit Tests](https://github.com/christopher-paul-shaw/Input/workflows/PHPUnit%20Tests/badge.svg?branch=master)](https://github.com/christopher-paul-shaw/Input/workflows/PHPUnit%20Tests/badge.svg?branch=master)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

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

2701d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3262023?v=4)[chris-shaw](/maintainers/chris-shaw)[@chris-shaw](https://github.com/chris-shaw)

---

Top Contributors

[![christopher-paul-shaw](https://avatars.githubusercontent.com/u/12035126?v=4)](https://github.com/christopher-paul-shaw "christopher-paul-shaw (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/christopher-paul-shaw-input/health.svg)

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

###  Alternatives

[chaoswey/taiwan-id-validator

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

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

PHPackages © 2026

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