laravel-validation-rules/country-codes
Validate country codes.
544,432
32
Larablocks Analysis
laravel-validation-rules/country-codes works with Laravel 5 to 10 (latest release 4.2.0, Feb 17, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5 to 10, past end of life since Feb 4, 2025
- No release in the last 12 months (last: Feb 17, 2023)
- 11,110 downloads a month (at least 10,000)
- 32 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Feb 17, 2023.
- No releases in the last 12 months.
- First released: Sep 10, 2017.
- Monthly downloads: 11,110, up 66% from six months ago.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require laravel-validation-rules/country-codes |
|
| Latest Version: | 4.2.0 |
| PHP: | ^7.3|^8.0 |
| Laravel: | 5 – 10 |
| License: | Apache-2.0 |
| Last Updated: | Jul 26, 2024 |
| Links: | GitHub · Packagist |
Maintainer: clarkeash
Country Codes
Validates 2 & 3 character country codes.
Installation
composer require laravel-validation-rules/country-codes
Usage
Validate a 2 character country code.
use LVR\CountryCode\Two;
$request->validate([
'country' => ['required', new Two],
]);
Validate a 3 character country code.
use LVR\CountryCode\Three;
$request->validate([
'country' => ['required', new Three],
]);
Related Packages
jedrzej/validator-extended-syntax
Laravel 4/5 package that adds validator negation to Laravel's validation module
11,618
3
digitonic/validation
A Laravel custom validation package with some out of the box validators.
2,526
2
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 4.2.0 | ^7.3| | ^5.5| | Apache-2.0 | |
| 4.1.0 | ^7.3| | ^5.5| | Apache-2.0 | |
| 4.0.0 | ^7.3| | ^5.5| | Apache-2.0 | |
| v3.0.0 | ^7.3| | ^5.5| | Apache-2.0 | |
| 2.2.0 | ^5.5| | Apache-2.0 | ||
| v2.1.0 | ^5.5| | Apache-2.0 | ||
| v2.0.0 | ^5.5| | Apache-2.0 | ||
| V1.1.0 | ^5.5 | Apache-2.0 | ||
| v1.0.0 | ^5.5 | Apache-2.0 |