PHPackages                             masterskill/validation-error-trait - 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. masterskill/validation-error-trait

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

masterskill/validation-error-trait
==================================

This package is a trait to validate input and return directly error with status code 400 to FormRequest in laravel

1.0.0(2y ago)095MITPHPPHP ^8.0

Since Jul 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/masterSkill77/validation-error-trait)[ Packagist](https://packagist.org/packages/masterskill/validation-error-trait)[ RSS](/packages/masterskill-validation-error-trait/feed)WikiDiscussions master Synced yesterday

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

Validation Error Trait
======================

[](#validation-error-trait)

The package
-----------

[](#the-package)

This package is for validating directly the FormRequest and return all error in JSON like with BAD\_REQUEST status code.

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

[](#installation)

To install this, you need [Composer](https://getcomposer.org/) and [ the Laravel framework](https://laravel.com/). After that, you can install the package with the command :

```
composer require masterskill/validation-error-trait
```

Note
----

[](#note)

This project is just an implementation of the failedValidation function for the form request in Laravel. Always read the framework documentation to read all stuff about it.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

732d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/76204885?v=4)[masterSkill](/maintainers/masterSkill77)[@masterSkill77](https://github.com/masterSkill77)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/masterskill-validation-error-trait/health.svg)

```
[![Health](https://phpackages.com/badges/masterskill-validation-error-trait/health.svg)](https://phpackages.com/packages/masterskill-validation-error-trait)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.7k](/packages/duncanmcclean-statamic-cargo)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1043.3k6](/packages/carsdotcom-laravel-json-schema)

PHPackages © 2026

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