stefnats/laravel-validation-locale

Laravel validator for locale string.

Installs: 2 226

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/stefnats/laravel-validation-locale

1.5 2024-04-25 07:06 UTC

This package is auto-updated.

Last update: 2025-09-25 10:11:51 UTC


README

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

Installation

Just install using composer with:

composer require stefnats/laravel-validation-locale

Usage

In your requests you can use:

use Stefnats\Locale\Locale;

//

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

License

This project is licensed under a GPL license which you can find in this LICENSE.

And also: Have fun :)