PHPackages                             dij-digital/deconstructed-validation-messages - 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. dij-digital/deconstructed-validation-messages

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

dij-digital/deconstructed-validation-messages
=============================================

1.1(2y ago)36MITPHPPHP ^8.2

Since Jun 21Pushed 2y ago4 watchersCompare

[ Source](https://github.com/DIJ-digital/deconstructed-validation-messages)[ Packagist](https://packagist.org/packages/dij-digital/deconstructed-validation-messages)[ Docs](https://github.com/DIJ-digital/deconstructed-validation-messages)[ RSS](/packages/dij-digital-deconstructed-validation-messages/feed)WikiDiscussions main Synced 2w ago

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

deconstructed-validation-messages
=================================

[](#deconstructed-validation-messages)

Is your application headless or an API? Do you want *all* your translations to be done in the frontend? Then this is the package for you. Instead of returning the translated error strings from the Laravel translation files, this package returns the original translation keys, the parameters and their values.

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

[](#installation)

You can install the package via composer:

```
composer require dij-digital/deconstructed-validation-messages
```

Optionally you can publish the config file with:

```
php artisan vendor:publish --tag="deconstructed-validation-messages-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

Simply install the package and make sure the provider is registered. The package will automatically take care of the rest.

Your response will look like this:

```
{
  "field": {
    "rule": {
      "key": "rule.language_key",
      "message": "Traditional error message",
      "parameters": {
        "x": 1,
        "y": 2
      }
    }
  }
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [DIJ](https://github.com/DIJ-Digital)

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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 ~47 days

Total

2

Last Release

742d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3957548?v=4)[Daniel](/maintainers/DIJ)[@DIJ](https://github.com/DIJ)

---

Top Contributors

[![NiekNijland](https://avatars.githubusercontent.com/u/43474728?v=4)](https://github.com/NiekNijland "NiekNijland (9 commits)")[![tychoengberinkDIJ](https://avatars.githubusercontent.com/u/122891499?v=4)](https://github.com/tychoengberinkDIJ "tychoengberinkDIJ (4 commits)")

---

Tags

laravelDIJdeconstructed-validation-messages

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dij-digital-deconstructed-validation-messages/health.svg)

```
[![Health](https://phpackages.com/badges/dij-digital-deconstructed-validation-messages/health.svg)](https://phpackages.com/packages/dij-digital-deconstructed-validation-messages)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.2k12.6M141](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k5.4M50](/packages/spatie-laravel-pdf)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

25060.1k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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