PHPackages                             photogabble/lumen-form-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. photogabble/lumen-form-request

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

photogabble/lumen-form-request
==============================

Laravel-like form requests built for Lumen

v1.0.1(6y ago)012[1 PRs](https://github.com/photogabble/lumen-form-request/pulls)MITPHPPHP &gt;=7.3.4

Since Aug 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/photogabble/lumen-form-request)[ Packagist](https://packagist.org/packages/photogabble/lumen-form-request)[ RSS](/packages/photogabble-lumen-form-request/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Lumen Form Requests
===================

[](#lumen-form-requests)

*Laravel-like form requests built for Lumen*

 [![License](https://camo.githubusercontent.com/97e6e19281d965b684d09970303c3c2ef2dac9b2762c2b24fa850a941bc3b4fe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70686f746f676162626c652f6c756d656e2d666f726d2d726571756573742e737667)](LICENSE)

About
-----

[](#about)

While working on an api utilising the Lumen framework I found myself missing the FormRequest functionality that comes out of the box with Laravel.

A quick Google search discovered [this](https://medium.com/@mikimaineamdu/how-to-bring-back-form-request-to-lumen-5-x-fb67e4a51f53) article by [Mikiyas Amdu](https://medium.com/@mikimaineamdu).

The code in the article is a little out of date and while I was updating it for use in one of my projects I decided to break out the code into this small library so I could use it in my other Lumen projects.

Mikiyas original code dealt with redirects and sessions; in order to keep this implementation in line with how Lumen is intended to be used I have stripped out that functionality and coded for returning Json responses.

Install
-------

[](#install)

Install with `composer require photogabble/lumen-form-request` and then enable the library in your `bootstrap/app.php` file with:

```
$app->register(\Photogabble\LumenFormRequest\LumenFormGeneratorServiceProvider::class);

```

Usage
-----

[](#usage)

Create a new form request with the command `make:api-request {request name}` and the command will create a new file in your `app/Http/Requests` path (creating it if it does not already exist).

Not invented here
-----------------

[](#not-invented-here)

A little further digging and I discovered that Mikiyas had already wrapped their implementation into the [urameshibr/lumen-form-request](https://packagist.org/packages/urameshibr/lumen-form-request) library.

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

2

Last Release

2501d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/464699?v=4)[Simon Dann](/maintainers/carbontwelve)[@carbontwelve](https://github.com/carbontwelve)

---

Top Contributors

[![carbontwelve](https://avatars.githubusercontent.com/u/464699?v=4)](https://github.com/carbontwelve "carbontwelve (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/photogabble-lumen-form-request/health.svg)

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

###  Alternatives

[pearl/lumen-request-validate

Lumen doesn't have form request validator seperatly. This package helps developers to segregate the validation layer from the controller to a separate dedicated class

45397.3k2](/packages/pearl-lumen-request-validate)[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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