PHPackages                             stefnats/laravel-validation-locale - 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. stefnats/laravel-validation-locale

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

stefnats/laravel-validation-locale
==================================

Laravel validator for locale string.

1.5(2y ago)02.9k↓50%GPL-3.0-or-laterPHPCI failing

Since Jan 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/stefnats/laravel-validation-locale)[ Packagist](https://packagist.org/packages/stefnats/laravel-validation-locale)[ RSS](/packages/stefnats-laravel-validation-locale/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

Laravel Validation Locale
=========================

[](#laravel-validation-locale)

This package delivers a validator to validate locale strings like `de_DE` or `en_US` (everything that is included in `ResourceBundle::getLocales('')`)

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

[](#installation)

Just install using composer with:

`composer require stefnats/laravel-validation-locale`

Usage
-----

[](#usage)

In your requests you can use:

```
use Stefnats\Locale\Locale;

//

return [
    'my_locale_input' => [new Locale()],
];
```

### License

[](#license)

This project is licensed under a GPL license which you can find [in this LICENSE](https://github.com/stefnats/laravel-validation-locale/blob/master/LICENSE).

And also: Have fun :)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~311 days

Recently: every ~350 days

Total

6

Last Release

748d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1174473?v=4)[stefan](/maintainers/stefnats)[@stefnats](https://github.com/stefnats)

---

Top Contributors

[![stefnats](https://avatars.githubusercontent.com/u/1174473?v=4)](https://github.com/stefnats "stefnats (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelvalidatorvalidationlocale

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stefnats-laravel-validation-locale/health.svg)

```
[![Health](https://phpackages.com/badges/stefnats-laravel-validation-locale/health.svg)](https://phpackages.com/packages/stefnats-laravel-validation-locale)
```

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[laravel-validation-rules/timezone

Validate that a given timezone is valid.

2119.0k](/packages/laravel-validation-rules-timezone)[mvdnbrk/gtin

GTIN / EAN / UPC Validation for Laravel

3148.6k1](/packages/mvdnbrk-gtin)

PHPackages © 2026

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