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

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

cswni/blade-country-flags
=========================

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

1.0.5(3y ago)02.5kMITPHPPHP ^7.4|^8.0|^8.1

Since Jun 15Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (7)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 cswni/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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 68.8% 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 ~122 days

Recently: every ~152 days

Total

6

Last Release

1183d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.0.4PHP ^7.4|^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0415537a74f94340a66fe825a0890758e5dc816ace241cba183c8128bfc9918e?d=identicon)[cswni](/maintainers/cswni)

---

Top Contributors

[![stijnvanouplines](https://avatars.githubusercontent.com/u/16742744?v=4)](https://github.com/stijnvanouplines "stijnvanouplines (11 commits)")[![rubenvanerk](https://avatars.githubusercontent.com/u/20305359?v=4)](https://github.com/rubenvanerk "rubenvanerk (3 commits)")[![cswni](https://avatars.githubusercontent.com/u/14812743?v=4)](https://github.com/cswni "cswni (2 commits)")

---

Tags

laravelbladecountry flags

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/cswni-blade-country-flags/health.svg)

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