PHPackages                             sandersm90/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. [Templating &amp; Views](/categories/templating)
4. /
5. sandersm90/laravel-country-flags

ActiveLibrary[Templating &amp; Views](/categories/templating)

sandersm90/laravel-country-flags
================================

A package to easily make use of country flags in your Laravel Blade views.

1.0(1y ago)0998↓43.2%MITPHPPHP ^7.4|^8.0

Since Apr 11Pushed 3mo agoCompare

[ Source](https://github.com/Sandersm90/laravel-country-flags)[ Packagist](https://packagist.org/packages/sandersm90/laravel-country-flags)[ Docs](https://github.com/Sandersm90/laravel-country-flags)[ RSS](/packages/sandersm90-laravel-country-flags/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

 [![](https://github.com/stijnvanouplines/blade-country-flags/raw/main/socialcard-blade-country-flags.png "Social Card Blade Country Flags")](https://github.com/stijnvanouplines/blade-country-flags/raw/main/socialcard-blade-country-flags.png)

Blade Country Flags
===================

[](#blade-country-flags)

[ ![Tests](https://github.com/stijnvanouplines/blade-country-flags/workflows/Tests/badge.svg)](https://github.com/stijnvanouplines/blade-country-flags/actions?query=workflow%3ATests)[ ![Code Style](https://camo.githubusercontent.com/9f065bed8f36cf99dabbfaca9f9058730656900a45cec72b187db7033aaa3cea/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3337373235383834392f736869656c643f7374796c653d666c6174)](https://github.styleci.io/repos/377258849)[ ![Latest Stable Version](https://camo.githubusercontent.com/9f0cd7c644c7640b37fa41864c2416d87cfb5b880b7d9970cd310146b6283945/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374696a6e76616e6f75706c696e65732f626c6164652d636f756e7472792d666c616773)](https://packagist.org/packages/stijnvanouplines/blade-country-flags)[ ![Total Downloads](https://camo.githubusercontent.com/0a05d48c3633c99c95c9e8fbd8badbac6b3f38145e21629e40462bacf7e2575a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374696a6e76616e6f75706c696e65732f626c6164652d636f756e7472792d666c616773)](https://packagist.org/packages/stijnvanouplines/blade-country-flags)A package to easily make use of country flags in your Laravel Blade views.

This package is using SVG flags provided by [flag-icon-css](https://github.com/lipis/flag-icon-css). All credits go to this project and all of it's creators.

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Laravel 8.0 or higher

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

[](#installation)

```
composer require stijnvanouplines/blade-country-flags
```

Blade Icons
-----------

[](#blade-icons)

Blade Country Flags uses Blade Icons under the hood. Please refer to [the Blade Icons readme](https://github.com/blade-ui-kit/blade-icons) for additional functionality. We also recommend to [enable icon caching](https://github.com/blade-ui-kit/blade-icons#caching) with this library.

Configuration
-------------

[](#configuration)

Blade Country Flags also offers the ability to use features from Blade Icons like default classes, default attributes, etc. If you'd like to configure these, publish the `blade-country-flags.php` config file:

```
php artisan vendor:publish --tag=blade-country-flags-config
```

Usage
-----

[](#usage)

Flags can be used as self-closing Blade components which will be compiled to SVG flags:

```

```

You can also pass classes to your flag components:

```

```

And even use inline styles:

```

```

A square flag can be referenced like this:

```

```

### Raw SVG Flags

[](#raw-svg-flags)

If you want to use the raw SVG flags as assets, you can publish them using:

```
php artisan vendor:publish --tag=blade-country-flags --force
```

Then use them in your views like:

```

```

Changelog
---------

[](#changelog)

Check out the [CHANGELOG](CHANGELOG.md) in this repository for all the recent changes.

Credits
-------

[](#credits)

- [Blade Icons](https://github.com/blade-ui-kit/blade-icons)
- [flag-icon-css](https://github.com/lipis/flag-icon-css)

License
-------

[](#license)

Blade Country Flags is open-sourced software licensed under [the MIT license](LICENSE.md).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance64

Regular maintenance activity

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.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

Unknown

Total

1

Last Release

402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f5dc2e4f684a1b8aade19cd824e4acfb6c7b4d3bcdee4af78c5d70e5664f792?d=identicon)[unkn0wn](/maintainers/unkn0wn)

---

Top Contributors

[![stijnvanouplines](https://avatars.githubusercontent.com/u/16742744?v=4)](https://github.com/stijnvanouplines "stijnvanouplines (22 commits)")[![KhunHtetzNaing](https://avatars.githubusercontent.com/u/12862097?v=4)](https://github.com/KhunHtetzNaing "KhunHtetzNaing (5 commits)")[![rubenvanerk](https://avatars.githubusercontent.com/u/20305359?v=4)](https://github.com/rubenvanerk "rubenvanerk (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![AzzamDaaboul](https://avatars.githubusercontent.com/u/7645375?v=4)](https://github.com/AzzamDaaboul "AzzamDaaboul (2 commits)")[![myxiaoao](https://avatars.githubusercontent.com/u/1223134?v=4)](https://github.com/myxiaoao "myxiaoao (1 commits)")[![andrefilsantos](https://avatars.githubusercontent.com/u/12803202?v=4)](https://github.com/andrefilsantos "andrefilsantos (1 commits)")[![omarherri](https://avatars.githubusercontent.com/u/12627384?v=4)](https://github.com/omarherri "omarherri (1 commits)")[![paulohenriquesg](https://avatars.githubusercontent.com/u/312820?v=4)](https://github.com/paulohenriquesg "paulohenriquesg (1 commits)")

---

Tags

laravelbladecountry flags

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[outhebox/blade-flags

A package to easily make use of country &amp; language flags in your Laravel Blade views.

303723.7k6](/packages/outhebox-blade-flags)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18299.2k7](/packages/technikermathe-blade-lucide-icons)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)[afatmustafa/blade-hugeicons

A package to easily make use of Hugeicons(Free version) in your Laravel Blade views.

13129.0k3](/packages/afatmustafa-blade-hugeicons)

PHPackages © 2026

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