PHPackages                             tightr/laravel-country-flags - 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. tightr/laravel-country-flags

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

tightr/laravel-country-flags
============================

A Laravel 5.6 wrapper for the stidges/country-flags package

v1.0.2(7y ago)0693MITPHPPHP ~7.0

Since Jan 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tightr/laravel-country-flags)[ Packagist](https://packagist.org/packages/tightr/laravel-country-flags)[ Docs](https://github.com/tightr/laravel-country-flags)[ RSS](/packages/tightr-laravel-country-flags/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Laravel Country Flags
=====================

[](#laravel-country-flags)

[![Latest Version on Packagist](https://camo.githubusercontent.com/694abbdd280812252c5f700d4fa0fc9553af3259eb72415cea44da5f0c7a701c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737469646765732f6c61726176656c2d636f756e7472792d666c6167732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stidges/laravel-country-flags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f351e4becd8a1939c9a535851f65995601f6fe6e2919880951a17194d41179eb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f737469646765732f6c61726176656c2d636f756e7472792d666c6167732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/stidges/laravel-country-flags)[![Quality Score](https://camo.githubusercontent.com/7538554ccc025e6aae1c442c87c58b579421575f4ca41e6256992dae1a3e6ee2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f737469646765732f6c61726176656c2d636f756e7472792d666c6167732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stidges/laravel-country-flags)[![Total Downloads](https://camo.githubusercontent.com/4598a301a91c322b9c16a6e4150f29f812cec63701ed7427292aa4e4d80bfdfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737469646765732f6c61726176656c2d636f756e7472792d666c6167732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stidges/laravel-country-flags)

A Laravel 5.6 wrapper for the [stidges/country-flags](https://github.com/stidges/country-flags) package.

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

[](#installation)

You can install the package via Composer:

```
$ composer require tightr/laravel-country-flags
```

The Laravel facade and service provider are registered through auto-discovery, so you can start using it out of the box!

Usage
-----

[](#usage)

This package publishes a Laravel facade for easier usage:

```
use CountryFlag;

echo CountryFlag::get('NL'); // "🇳🇱"
```

It also comes with a helper function that you can use!

```
echo country_flag('NL'); // "🇳🇱"
```

Aliasing
--------

[](#aliasing)

If you would like to make country codes available under a custom aliases, you can update the configuration file. First you should publish it:

```
$ php artisan vendor:publish --provider="Tightr\LaravelCountryFlags\CountryFlagsServiceProvider"
```

This will make the configuration file available under `config/country-flags.php`. You can update the `'aliases'` section to add your custom aliases:

```
return [
    'aliases' => [
        'AA' => 'NL',
    ],
];
```

And it will be available for you to access:

```
echo country_flag('AA'); // "🇳🇱"
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stidges](https://github.com/stidges)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see License File for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~197 days

Total

3

Last Release

2681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aae97c2f58fc9eff6580be4e0c11b38bb1e3efa12f32591dc3c5c4dbfcf5b483?d=identicon)[tightr](/maintainers/tightr)

---

Top Contributors

[![stidges](https://avatars.githubusercontent.com/u/4399967?v=4)](https://github.com/stidges "stidges (3 commits)")[![pmayet](https://avatars.githubusercontent.com/u/1593076?v=4)](https://github.com/pmayet "pmayet (1 commits)")

---

Tags

laravelunicodecountriesflagcountryemojicountry flags

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/tightr-laravel-country-flags/health.svg)

```
[![Health](https://phpackages.com/badges/tightr-laravel-country-flags/health.svg)](https://phpackages.com/packages/tightr-laravel-country-flags)
```

###  Alternatives

[stidges/laravel-country-flags

A Laravel wrapper for the stidges/country-flags package

28140.0k](/packages/stidges-laravel-country-flags)[stidges/country-flags

A small package to convert a country code to the corresponding country flag emoji

29267.7k4](/packages/stidges-country-flags)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.8M](/packages/dougsisk-laravel-country-state)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8231.3k1](/packages/dipeshsukhia-laravel-country-state-city-data)[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

20925.1k](/packages/unicodeveloper-laravel-emoji)

PHPackages © 2026

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