PHPackages                             lwwcas/laravel-countries - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. lwwcas/laravel-countries

ActiveLibrary[Database &amp; ORM](/categories/database)

lwwcas/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.

4.12.0.1(1y ago)12464.0k↓31.7%36[9 issues](https://github.com/lwwcas/laravel-countries/issues)[8 PRs](https://github.com/lwwcas/laravel-countries/pulls)MITPHPPHP ^8.2|^8.3CI passing

Since Nov 20Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/lwwcas/laravel-countries)[ Packagist](https://packagist.org/packages/lwwcas/laravel-countries)[ Docs](https://lwwcas.github.io/laravel-countries/)[ RSS](/packages/lwwcas-laravel-countries/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (22)Used By (0)

 [![Hero Map](./docs/assets/hero-map.webp)](./docs/assets/hero-map.webp)

[![release](https://camo.githubusercontent.com/ef14cca0eaae02593371608130512a7793638858a332ee7039402f83c41261ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)](https://camo.githubusercontent.com/ef14cca0eaae02593371608130512a7793638858a332ee7039402f83c41261ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)[![size](https://camo.githubusercontent.com/774ad3dab1a5f8555520fb79bfc7baa97af5fafab1da3894abb0f3ea174b61f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6c77776361732f6c61726176656c2d636f756e74726965733f6c6162656c3d73697a65267374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)](https://camo.githubusercontent.com/774ad3dab1a5f8555520fb79bfc7baa97af5fafab1da3894abb0f3ea174b61f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6c77776361732f6c61726176656c2d636f756e74726965733f6c6162656c3d73697a65267374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)[![Packagist Downloads](https://camo.githubusercontent.com/054ccb15e9ea34be5616226b945749e4cd7f14513ed4422b1b2c373a54576fb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)](https://camo.githubusercontent.com/054ccb15e9ea34be5616226b945749e4cd7f14513ed4422b1b2c373a54576fb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)[![Packagist Stars](https://camo.githubusercontent.com/8ffa2f8a16a74e1c57f639f46086dd2adb671f60b91d6d86505424c27649de4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)](https://camo.githubusercontent.com/8ffa2f8a16a74e1c57f639f46086dd2adb671f60b91d6d86505424c27649de4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)[![Packagist License](https://camo.githubusercontent.com/6c360ca5d532553eca4b084563143b5a206e7dad6d7bbe48a0b5e1d1da868359/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)](https://camo.githubusercontent.com/6c360ca5d532553eca4b084563143b5a206e7dad6d7bbe48a0b5e1d1da868359/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c77776361732f6c61726176656c2d636f756e74726965733f7374796c653d666c61742d73717561726526636f6c6f723d253233666636663330)

### [Full Documentation](https://lwwcas.github.io/laravel-countries/)

[](#full-documentation)

Very short description
----------------------

[](#very-short-description)

[![My Logo](./docs/assets/logo.png)](./docs/assets/logo.png)

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.

🌍 Available Languages
---------------------

[](#-available-languages)

We currently support the following languages:

LanguageFlagCountryNumber of CountriesArabic🇸🇦Saudi Arabia25Dutch🇳🇱Netherlands3English🇬🇧United Kingdom67German🇩🇪Germany6Italian🇮🇹Italy4Portuguese🇧🇷Brazil9Russian🇷🇺Russia4Spanish🇪🇸Spain21🚀 Getting Started
-----------------

[](#-getting-started)

Install the package quickly via Composer:

```
composer require lwwcas/laravel-countries
```

And get started with Artisan

```
php artisan w-countries:install
```

Usage
-----

[](#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();
```

### Testing With Pest Php

[](#testing-with-pest-php)

```
composer test
```

Credits
-------

[](#credits)

- [Lucas Duarte](https://github.com/lwwcas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance69

Regular maintenance activity

Popularity49

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~37 days

Total

21

Last Release

414d ago

Major Versions

3.5.2 → 4.11.0.12024-11-01

PHP version history (4 changes)3.0.0PHP ^7.3|^8.0

3.4.0PHP ^7.3|^8.0|^8.1|^8.2

4.11.0.1PHP ^8.0|^8.1|^8.2

4.12.0.1PHP ^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/61b7955dcf71b539113f571423f5249a8648a2a103f0371d85416852659113dc?d=identicon)[lwwcas](/maintainers/lwwcas)

---

Top Contributors

[![lwwcas](https://avatars.githubusercontent.com/u/19727953?v=4)](https://github.com/lwwcas "lwwcas (80 commits)")[![daniel-de-wit](https://avatars.githubusercontent.com/u/3015394?v=4)](https://github.com/daniel-de-wit "daniel-de-wit (3 commits)")[![muhannadalhariri](https://avatars.githubusercontent.com/u/37214752?v=4)](https://github.com/muhannadalhariri "muhannadalhariri (1 commits)")[![myindexlike](https://avatars.githubusercontent.com/u/16356381?v=4)](https://github.com/myindexlike "myindexlike (1 commits)")[![vadimwe](https://avatars.githubusercontent.com/u/2635452?v=4)](https://github.com/vadimwe "vadimwe (1 commits)")[![mucenica-bogdan](https://avatars.githubusercontent.com/u/846097?v=4)](https://github.com/mucenica-bogdan "mucenica-bogdan (1 commits)")[![hnasiry](https://avatars.githubusercontent.com/u/14115146?v=4)](https://github.com/hnasiry "hnasiry (1 commits)")

---

Tags

arabiccountriescountrycountry-codescountry-flagsdatabasedutchenglishgermanitalianlaravelmigrationsphpportugueseportuguese-brazilianportuguese-portugalregionsrussianseedsspanishlaravelgeolocationmultilingualcountrieslaravel-packagegeographycoordinatesISO codesgeojsonlwwcaslucas duartecountry datasvg mapsworld countries

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/lwwcas-laravel-countries/health.svg)

```
[![Health](https://phpackages.com/badges/lwwcas-laravel-countries/health.svg)](https://phpackages.com/packages/lwwcas-laravel-countries)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[relaticle/custom-fields

User Defined Custom Fields for Laravel Filament

15828.6k](/packages/relaticle-custom-fields)[mozex/laravel-scout-bulk-actions

A Laravel Scout extension for bulk importing and flushing of all models.

1033.4k](/packages/mozex-laravel-scout-bulk-actions)[salehhashemi/laravel-repository

Implementing the repository pattern for Laravel projects.

2010.5k](/packages/salehhashemi-laravel-repository)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
