PHPackages                             alpercevik/request-variable-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. alpercevik/request-variable-validation

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

alpercevik/request-variable-validation
======================================

A validation class to validate and check if exists for variables in an Object (request).

0.04(8y ago)034MITPHP

Since Apr 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/aradhell/request-variable-validation)[ Packagist](https://packagist.org/packages/alpercevik/request-variable-validation)[ RSS](/packages/alpercevik-request-variable-validation/feed)WikiDiscussions master Synced 1mo ago

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

**sample usage**

```
composer require alpercevik/request-variable-validation

```

```
use RequestVariableValidation\RequestVariableValidation;
require_once '/vendor/autoload.php'; // composer autoloader

$APIRequestVariableValidation = RequestVariableValidation::getInstance();

$rules = array(
    "lang" => array("type"=>"letters","max_length" =>2, "min_length"=>2),
    "offset" => array("type"=>"numbers","max_length" =>2, "min_length"=>1),
    "count" => array("type"=>"numbers","max_length" =>2, "min_length"=>1)
);

$result = $APIRequestVariableValidation->checkVariableIfExists($_GET, $rules);
```

**returns**

```
$result['status'] = 0;  // 0: Error, 1: Success
$result['message'] = "" // If an error occured
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

2973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9737ba8bbff209ca0588b8c78a29d9dd933219ac7d3079bfa6c853936b43692a?d=identicon)[alpercevik](/maintainers/alpercevik)

---

Top Contributors

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

---

Tags

validationapi request validationvariable validation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alpercevik-request-variable-validation/health.svg)

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

###  Alternatives

[composer/semver

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

3.3k489.6M671](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M414](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M381](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64236.9M185](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8412.9M47](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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