New

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

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.
1,517
Install
composer require drnd-dev/laravel-countries
Latest Version:5.1.1
PHP:^8.2
Laravel:12 · 13
Older releases:8 – 11
License:MIT
Last Updated:Apr 27, 2026
Links: GitHub  ·  Packagist
Maintainer: drnd-dev

Hero Map

release size Packagist Downloads Packagist Stars Packagist License

Full Documentation


Very short description

My Logo

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.

Related Packages

lwwcas/laravel-countries

A comprehensive package for managing country data in Laravel applications, inclu...

92,303 132
igaster/laravel_cities

Seed all countries/cities from geonames.org database. Searchable DB tree, ready...

97,669 180
traineratwot/filament-openstreetmap

OpenStreetMap field for Filament forms with Leaflet.js — pick coordinates, geoco...

2,155 28
plin-code/laravel-istat-geography

Laravel package for importing and managing Italian geography data from ISTAT

9,695 13
nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

684,325 998

Version History

Version Released PHP Laravel License
5.1.1 ^8.2 ^12.0|^13.0 MIT
5.1.0 ^8.2 ^12.0|^13.0 MIT
5.0.0 ^8.2 ^12.0|^13.0 MIT
4.12.0.1 ^8.2|^8.3 ^10.48|^11.31|^12.0 MIT
4.11.0.4 ^8.0|^8.1|^8.2 ^10.0|^11.0|dev-master MIT