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)03.3k↓71.4%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 2d 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 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

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

[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2462.4M7](/packages/laravel-validation-rules-credit-card)[proengsoft/laravel-jsvalidation

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

1.1k2.4M50](/packages/proengsoft-laravel-jsvalidation)[intervention/validation

Additional validation rules for the Laravel framework

6827.2M20](/packages/intervention-validation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.6M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel anti-virus validator for file uploads using ClamAV.

3722.1M6](/packages/sunspikes-clamav-validator)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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