drnd-dev / laravel-countries
A comprehensive package for managing country data in Laravel applications, including multilingual support, geographic coordinates, and detailed metadata for seamless integration with Laravel.
Requires
- php: ^8.2
- astrotomic/laravel-translatable: ^11.8
- illuminate/console: ^12.0|^13.0
- illuminate/contracts: ^12.0|^13.0
- illuminate/database: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- spatie/laravel-package-tools: ^1.93
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pint: ^1.29
- mockery/mockery: ^1.6
- nunomaduro/termwind: ^2.3.0
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^3.7|^4.0
- pestphp/pest-plugin-laravel: ^3.1|^4.0
This package is auto-updated.
Last update: 2026-04-13 09:23:46 UTC
README
Full Documentation
Very short description
Laravel Countries is a package that provides everything you need to kickstart a new project with comprehensive country information, including translations. Optimized for Laravel, it ensures efficient access and management of country data.
The package stores all data directly in your database, allowing you to easily link it to any other table in a simple and familiar way using Laravelโs Eloquent ORM.
This is a continuation from https://github.com/lwwcas/laravel-countries package with a few updates:
- Laravel 13.x support added.
- Added native argument and return types.
- Dropped Laravel 10, 11 support.
- Added PHPStan and Laravel pint.
๐ Available Languages
We currently support the following languages:
| Language | Flag | Country | Number of Countries |
|---|---|---|---|
| Arabic | ๐ธ๐ฆ | Saudi Arabia | 25 |
| Dutch | ๐ณ๐ฑ | Netherlands | 3 |
| English | ๐ฌ๐ง | United Kingdom | 67 |
| German | ๐ฉ๐ช | Germany | 6 |
| Italian | ๐ฎ๐น | Italy | 4 |
| Latvian | ๐ฎ๐น | Latvia | 1 |
| Portuguese | ๐ง๐ท | Brazil | 9 |
| Russian | ๐ท๐บ | Russia | 4 |
| Spanish | ๐ช๐ธ | Spain | 21 |
๐ Getting Started
Install the package quickly via Composer:
composer require drnd-dev/laravel-countries
And get started with Artisan
php artisan w-countries:install
Usage
You can access all the information in the database with a simple query
use Lwwcas\LaravelCountries\Models\Country; Country::whereIso('BR')->first(); Country::whereIsoAlpha3('BRA')->first(); Country::whereSlug('brasil')->first();
Credits
License
The MIT License (MIT). Please see License File for more information.

