PHPackages                             stijnvanouplines/blade-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. stijnvanouplines/blade-country-flags

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

stijnvanouplines/blade-country-flags
====================================

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

1.0.9(2mo ago)26307.2k—2.9%20[1 issues](https://github.com/stijnvanouplines/blade-country-flags/issues)5MITPHPPHP ^7.4|^8.0CI failing

Since Jun 15Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (10)Versions (12)Used By (5)

 [![](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

58

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~191 days

Recently: every ~180 days

Total

10

Last Release

76d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a5690f03d3f16b5b6c060e87c00ee74124b027cb623fbbb51ab2e6a4e1f328e?d=identicon)[Solitweb](/maintainers/Solitweb)

---

Top Contributors

[![stijnvanouplines](https://avatars.githubusercontent.com/u/16742744?v=4)](https://github.com/stijnvanouplines "stijnvanouplines (24 commits)")[![KhunHtetzNaing](https://avatars.githubusercontent.com/u/12862097?v=4)](https://github.com/KhunHtetzNaing "KhunHtetzNaing (5 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![rubenvanerk](https://avatars.githubusercontent.com/u/20305359?v=4)](https://github.com/rubenvanerk "rubenvanerk (3 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/stijnvanouplines-blade-country-flags/health.svg)

```
[![Health](https://phpackages.com/badges/stijnvanouplines-blade-country-flags/health.svg)](https://phpackages.com/packages/stijnvanouplines-blade-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)[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)
