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

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

codepoetry/request-validation
=============================

REST Payload validation for PHP applications.

1.0.5(2y ago)16MITPHPPHP ^8.2

Since Sep 9Pushed 2y agoCompare

[ Source](https://github.com/CodePoetryTeam/request-validation)[ Packagist](https://packagist.org/packages/codepoetry/request-validation)[ RSS](/packages/codepoetry-request-validation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

codepoetry/request-validation
=============================

[](#codepoetryrequest-validation)

REST Payload Validation for PHP Applications

[![License](https://camo.githubusercontent.com/2b3fecb5598bcfa441ad9f0125dd29ba6ba39b1a4f24f7eae089b25ab70a1723/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d50726f70726965746172792d627269676874677265656e2e737667)](LICENSE)

Description
-----------

[](#description)

`codepoetry/request-validation` is a PHP library that provides functionality for validating REST API payloads in PHP applications. It helps you ensure that incoming data adheres to your specified rules and constraints, making your applications more robust and secure.

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

[](#installation)

You can install this package via [Composer](https://getcomposer.org/):

```
composer require codepoetry/request-validation
```

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

[](#requirements)

- PHP &gt;= 8.2

Usage
-----

[](#usage)

Here's a basic example of how to use this package: Create `ExampleRequest.php` file in `app/Http/Requests`

```
