PHPackages                             bzilee/query-request - 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. bzilee/query-request

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

bzilee/query-request
====================

Request for validation of url parameters

1.2.2(3y ago)1380MITPHPPHP ^7.3|^8.0

Since Aug 25Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (7)Used By (0)

QueryRequest (Like FormRequest in Laravel Framework)
====================================================

[](#queryrequest-like-formrequest-in-laravel-framework)

Request for validation of url parameters

**How it works**

Suppose you have this url [www.bzilee.me/portfolio?post\_id=1](https://www.bzilee.me), where you should validate this parameter in the manner of [Laravel's formRequest](https://laravel.com/api/5.5/Illuminate/Foundation/Http/FormRequest.html). The problem is that laravel formRequest only handles data from POST requests.

This package completes the action of formRequests for GET requests.

Just create a validation file exactly like the formRequest inheritors.

And take advantage of laravel's dependency injection to enjoy the same power of formRequest.

Conditions
----------

[](#conditions)

The package requires PHP 7.0 or higher. The Laravel package also requires Laravel 5.5 or higher.

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

[](#installation)

Get the package by doing these things:

```

$ composer require bzilee/query-request

$ composer dump-autoload

```

Usage
-----

[](#usage)

```
