PHPackages                             pranpegu/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pranpegu/laravel-countries

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pranpegu/laravel-countries
==========================

Simple laravel country list

v1.0.0(6y ago)04.2kMITPHP

Since May 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ffegu/laravel-countries)[ Packagist](https://packagist.org/packages/pranpegu/laravel-countries)[ RSS](/packages/pranpegu-laravel-countries/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel Countries
=================

[](#laravel-countries)

Installation
------------

[](#installation)

```
composer require pranpegu/laravel-countries --dev
```

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

### Laravel without auto-discovery:

[](#laravel-without-auto-discovery)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Pranpegu\LaravelCountries\CountriesServiceProvider::class,
```

Uses
----

[](#uses)

You can now easily get the list of Countries with dial\_code and prefix

```
use Pranpegu\LaravelCountries\Countries;

$countries  = Countries::all(); //returns the array of countries name, dial_code and prefix

foreach($countries as $country){
    echo $country['name'].",".$country['dial_code'].",".$country['code'].",";
         //eg : Idia,91,IN
}

//or in blade file

@foreach($countries as $country)
    {{$country['name']}}
@endforeach

//can also use for getting phone(dial code) code

@foreach($countries as $country)
    {{$country['dial_code']}}
@endforeach

//similarly as Country prefix

@foreach($countries as $country)
    {{$country['code']}}
@endforeach

```

License
-------

[](#license)

Copyright © Ffegu

Laravel Countries is open-sourced software licensed under the [MIT license](LICENSE.md).

Donate :)
=========

[](#donate-)

### paypal :

[](#paypal--ffegu0617gmailcom)

Contact :)
==========

[](#contact-)

### gmail :

[](#gmail--ffegu0617gmailcom)

### phone : +916361563439

[](#phone--916361563439)

Hire me : I am always love to work for you
------------------------------------------

[](#hire-me--i-am-always-love-to-work-for-you)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~0 days

Total

2

Last Release

2231d ago

Major Versions

v0.01 → v1.0.02020-05-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/99862268?v=4)[ffegu](/maintainers/ffegu)[@ffegu](https://github.com/ffegu)

---

Top Contributors

[![ffegu](https://avatars.githubusercontent.com/u/99862268?v=4)](https://github.com/ffegu "ffegu (4 commits)")[![ppegu](https://avatars.githubusercontent.com/u/45468555?v=4)](https://github.com/ppegu "ppegu (2 commits)")

### Embed Badge

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

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

###  Alternatives

[lemonsqueezy/plain-ui-components

Plain UI Components for Laravel

25323.5k](/packages/lemonsqueezy-plain-ui-components)[hcodes/server_yametrika

Server-side tracking of visitors using Yandex.Metrica

7521.4k](/packages/hcodes-server-yametrika)[hiqdev/yii2-thememanager

Pluggable themes for Yii2

2834.0k9](/packages/hiqdev-yii2-thememanager)

PHPackages © 2026

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