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 today

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 35% 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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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