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

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

lukzgois/request
================

Extend Laravel 5's request.

15.6k1[1 PRs](https://github.com/lukzgois/request/pulls)PHP

Since Mar 31Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Extended Requests
===========================

[](#laravel-5-extended-requests)

Package that exteds the Laravel 5 FormRequest class to easily create custom validation rules.

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"lukzgois/request": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

How to use
----------

[](#how-to-use)

Make your request extends the `Lukzgois\Request\Request` class.

```
use Lukzgois\Request\Request;

class MyRequest extends Request {
```

Create your rules function with your custom rule:

```
public function rules()
{
  	return [
       	'my-rule' => 'custom'
    ];
}
```

Create a function with the format `validate`, like this:

```
public function validateCustom($attribute, $value, $params)
{
    return $value == 'custom';
}
```

Do not forget to put a message for this new rule. It can be in the `messages` function of the request or in the `validation` of the lang files.

```
public fucnction messages()
{
	return [
    	'custom' => 'My custom message'
	];
}
```

And that is it HAHA! :) Please enjoy!

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdb689fe01ec921449114f1f8fd8f81b13fd1fb8a6f37b8ebee6544f2d78b5cf?d=identicon)[lukz](/maintainers/lukz)

---

Top Contributors

[![lukzgois](https://avatars.githubusercontent.com/u/231633?v=4)](https://github.com/lukzgois "lukzgois (3 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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