PHPackages                             soyhuce/laravel-safe-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. soyhuce/laravel-safe-request

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

soyhuce/laravel-safe-request
============================

FormRequest helpers using validated data

2.3.0(2mo ago)010.7k[4 PRs](https://github.com/Soyhuce/laravel-safe-request/pulls)MITPHPPHP ^8.3CI passing

Since Nov 25Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/Soyhuce/laravel-safe-request)[ Packagist](https://packagist.org/packages/soyhuce/laravel-safe-request)[ Docs](https://github.com/soyhuce/laravel-safe-request)[ RSS](/packages/soyhuce-laravel-safe-request/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (18)Used By (0)

FormRequest helpers using validated data
========================================

[](#formrequest-helpers-using-validated-data)

[![Latest Version on Packagist](https://camo.githubusercontent.com/323738e599660708aa6354862c9d1aba9e0a0d77246e95483950a399a037d17f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f79687563652f6c61726176656c2d736166652d726571756573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/laravel-safe-request)[![GitHub Tests Action Status](https://camo.githubusercontent.com/941b17c8b7380954592e35f8fc1b53969b1e5691e3f5c329ce7c499ce0d05d61/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736f79687563652f6c61726176656c2d736166652d726571756573742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/soyhuce/laravel-safe-request/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b77080b89f1f338f1dbced090eb4959e0adb858a63ffc1d63b63145fc75971e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736f79687563652f6c61726176656c2d736166652d726571756573742f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/soyhuce/laravel-safe-request/actions/workflows/phpstan.yml)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/81bf9019337e2c48ce8ff132bb1263a7bd2e7edad497b07bcb82946c55789599/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736f79687563652f6c61726176656c2d736166652d726571756573742f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d7068702d63732d6669786572267374796c653d666c61742d737175617265)](https://github.com/soyhuce/laravel-safe-request/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/ea33c5efc6b201d078e40d15535d9a927288deb2b43fad0b346369860a294ce9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f79687563652f6c61726176656c2d736166652d726571756573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/laravel-safe-request)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

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

[](#installation)

You can install the package via composer:

```
composer require soyhuce/laravel-safe-request
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-safe-request-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-safe-request-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-safe-request-views"
```

Usage
-----

[](#usage)

```
$laravelSafeRequest = new Soyhuce\LaravelSafeRequest();
echo $laravelSafeRequest->echoPhrase('Hello, Soyhuce!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Bastien Philippe](https://github.com/bastien-phi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance88

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 52.9% 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 ~119 days

Recently: every ~132 days

Total

11

Last Release

70d ago

Major Versions

0.3.0 → 1.0.02023-11-24

1.2.0 → 2.0.02024-12-18

PHP version history (3 changes)0.1.0PHP ^8.1

1.0.0PHP ^8.2

2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/206cfbf866a463f7e7d1e86946d59b82f4191b9c89f9981fb03eeb264d77af79?d=identicon)[SoyHuCe](/maintainers/SoyHuCe)

---

Top Contributors

[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (37 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![EdenMl](https://avatars.githubusercontent.com/u/70885551?v=4)](https://github.com/EdenMl "EdenMl (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![ElRochito](https://avatars.githubusercontent.com/u/1737307?v=4)](https://github.com/ElRochito "ElRochito (2 commits)")[![tnajah59](https://avatars.githubusercontent.com/u/91531929?v=4)](https://github.com/tnajah59 "tnajah59 (1 commits)")

---

Tags

laravelsoyhucelaravel-safe-request

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/soyhuce-laravel-safe-request/health.svg)

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

###  Alternatives

[ziming/laravel-zxcvbn

Zxcvbn Password validation rule for Laravel

3056.7k](/packages/ziming-laravel-zxcvbn)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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