PHPackages                             lbdawkes/request-helper - 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. lbdawkes/request-helper

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

lbdawkes/request-helper
=======================

Provides helper methods for PHP request validation

1.0.2(8y ago)060MITPHPPHP &gt;=5.3.0

Since Oct 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ldawkes/RequestHelper)[ Packagist](https://packagist.org/packages/lbdawkes/request-helper)[ RSS](/packages/lbdawkes-request-helper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

Provides Laravel-like request validation without all the overhead.

> **Note:** More rules are still yet to be added

Basic Usage
-----------

[](#basic-usage)

```
	// Ruleset with key matching request parameter and value matching rules
	$rules = [
    	"name" 		=> "required|string",
        "age" 		=> "numeric",
        "consent" 	=> "required_without:age"
    ];

    // Aliases for request parameters with special characters
    $aliases = [
    	"name" => "Full Name"
    ];

    // Will either be true for success, or an array of error messages
    $result = RequestHelper::validatePost($rules, $aliases);
```

Available Methods
-----------------

[](#available-methods)

MethodPurpose**validateGet**Validates GET parameters**validatePost**Validates POST parametersAvailable Rules
---------------

[](#available-rules)

NameBehaviourExample**required***A required parameter*`"name" => "required`**required\_without**:*parameter**Parameter is only required when another is missing*`"age" => "required_without:consent"`**null***Checks that parameter is null*`"human_check_hidden" => "null"`**string***Checks parameter only contains alphanumeric characters*`"message" => "string"`**bool***Checks parameter is a valid boolean value*`"terms" => "bool"`**email***Checks parameter is a valid email*`"email" => "required|email"`**decimal***Checks parameter is a valid decimal number*`"result" => "decimal"`**phone***Checks parameter is a valid phone number*`"phone_no" => "phone"`**array***Checks parameter is a valid array*`"choices" => "required|array"`**same\_as**:*parameter**Checks that parameter is the same as another*`"password_check" => "password"`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

3

Last Release

3117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e5be578e77613470923b55d9072ec2609ec263a2415cbd62fef2f30fb100ecc?d=identicon)[lbdawkes](/maintainers/lbdawkes)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/lbdawkes-request-helper/health.svg)

```
[![Health](https://phpackages.com/badges/lbdawkes-request-helper/health.svg)](https://phpackages.com/packages/lbdawkes-request-helper)
```

###  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)[nette/forms

📝 Nette Forms: generating, validating and processing secure forms in PHP. Handy API, fully customizable, server &amp; client side validation and mature design.

54013.2M448](/packages/nette-forms)[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)

PHPackages © 2026

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