PHPackages                             lextira/laravel-formrequest-singleton - 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. lextira/laravel-formrequest-singleton

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

lextira/laravel-formrequest-singleton
=====================================

Use Laravel's excellent FormRequest as Singleton.

v1.1.0(1mo ago)23.9k1MITPHPPHP ^7.0|^8.0|^8.1|^8.2|^8.3|^8.4|^8.5CI failing

Since Feb 7Pushed 1mo ago3 watchersCompare

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

READMEChangelog (9)Dependencies (2)Versions (14)Used By (0)

laravel-formrequest-singleton
=============================

[](#laravel-formrequest-singleton)

Use Laravel's excellent FormRequest as Scoped

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

[](#installation)

- run `composer require lextira/laravel-formrequest-singleton`
- open `config/app.php` in your project
- replace `Illuminate\Foundation\Providers\FoundationServiceProvider::class`
    with `Lextira\FormRequestSingleton\FoundationServiceProvider::class`
- done!

Usage
-----

[](#usage)

All classes, which extend `Illuminate\Foundation\Http\FormRequest` are now instantiated as scoped.

This brings the following benefits:

- Changes done to the request by `prepareForValidation()` are applied only once, even if the FormRequest is used multiple times.
- The request validation is run only once, therefore especially database queries run only once.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance97

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 61.1% 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 ~279 days

Recently: every ~371 days

Total

9

Last Release

45d ago

PHP version history (6 changes)1.0.0PHP ^7.0

1.0.3PHP ^7.0|^8.0

v1.0.5PHP ^7.0|^8.0|^8.1

v1.0.6PHP ^7.0|^8.0|^8.1|^8.2

v1.0.7PHP ^7.0|^8.0|^8.1|^8.2|^8.3|^8.4

v1.1.0PHP ^7.0|^8.0|^8.1|^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/721661a7a1318360e9cf4db4a8a674c8a17eee528345155d906172a57c4c54d5?d=identicon)[dokohler](/maintainers/dokohler)

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

---

Top Contributors

[![kohlerdominik](https://avatars.githubusercontent.com/u/18621527?v=4)](https://github.com/kohlerdominik "kohlerdominik (11 commits)")[![ysfks](https://avatars.githubusercontent.com/u/10243325?v=4)](https://github.com/ysfks "ysfks (5 commits)")[![IndyIndyIndy](https://avatars.githubusercontent.com/u/2108907?v=4)](https://github.com/IndyIndyIndy "IndyIndyIndy (2 commits)")

### Embed Badge

![Health badge](/badges/lextira-laravel-formrequest-singleton/health.svg)

```
[![Health](https://phpackages.com/badges/lextira-laravel-formrequest-singleton/health.svg)](https://phpackages.com/packages/lextira-laravel-formrequest-singleton)
```

###  Alternatives

[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)

PHPackages © 2026

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