New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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 advised

Not 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

claraleigh/naughty-username

Validate that a username is not a naughty one

24,980 0
cohensive/validation

Extra functionality for Laravel 5 Validator.

13,938 14
jedrzej/validator-extended-syntax

Laravel 4/5 package that adds validator negation to Laravel's validation module

11,618 3
shin1x1/laravel-validator-builder

Laravel 4 Validator builder

7,436 2
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|^8.0 ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0 Apache-2.0
4.1.0 ^7.3|^8.0 ^5.5|^6.0|^7.0|^8.0|^9.0 Apache-2.0
4.0.0 ^7.3|^8.0 ^5.5|^6.0|^7.0|^8.0|^9.0 Apache-2.0
v3.0.0 ^7.3|^8.0 ^5.5|^6.0|^7.0|^8.0 Apache-2.0
2.2.0 ^5.5|^6.0|^7.0|^8.0 Apache-2.0