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(1y ago)36MITPHPPHP ^8.2

Since Jun 21Pushed 1y 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 today

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

29

—

LowBetter than 57% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

695d 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

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M99](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k38](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)

PHPackages © 2026

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