PHPackages                             custom-laravel-form-request/validator - 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. custom-laravel-form-request/validator

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

custom-laravel-form-request/validator
=====================================

Validator Form Request which may be used for validating data after parsing. For example we got big jsob string and we cannot change this, so what we need to do is to use Validator in laravel and provide in controller all the shit code like rules.. if fails and another. This class can validate this json after parsing without redundant code in controller, simply add data, next validation steps will processed automatically, rules and another logic is hidden in this class.

0.0.0(6y ago)01PHPPHP &gt;=5.6.4

Since Jul 7Pushed 6y agoCompare

[ Source](https://github.com/OleksiiFedorchak/CustomLaravelFormRequest)[ Packagist](https://packagist.org/packages/custom-laravel-form-request/validator)[ RSS](/packages/custom-laravel-form-request-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Custom Laravel Form Request
===========================

[](#custom-laravel-form-request)

Let's suppose that we got some data in json string and we cannot validate it with using simple FormRequest provided in Laravel. In this case it is necessary to parse data after validate it with Laravel Validator, so iur controller keeps redundant code and you already are not sutisfied with this code. How to solve the problem: Use custom validator provided here!

How to use:
===========

[](#how-to-use)

Create FormRequest php artisan make:request SomeRequest. Use code from this package into your class. Or put this class into your App\\Http\\Requests folder and extend you just created request from this custom request. So your code will look something like this:

namespace ... use ...

class SomeValidator extends CustomFormRequestValidator { //overwrite here rules and authorize.. }

In your controller, your code will look:

```
    $customRequest = SomeValidator::getInstance()
        ->addJsonData($someData)
        ->validate();

    if (!$customRequest->isValid())
        //do something...

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb02e4291068a151e91fea1936b77d5525353de0e93b24971ac55d4c58771cf0?d=identicon)[Oleksii Fedorchak](/maintainers/Oleksii%20Fedorchak)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/custom-laravel-form-request-validator/health.svg)

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

###  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)
