stefnats / laravel-validation-locale
Laravel validator for locale string.
Installs: 1 837
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-intl: *
- illuminate/translation: ^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/validation: ^7.0|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- phpunit/phpunit: ~5.7
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 :)