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

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

codepil0t/laravel-country-flags
===============================

A Laravel package for country flags

1.0.0(8mo ago)2297MITPHPPHP &gt;=7.3

Since Oct 20Pushed 8mo agoCompare

[ Source](https://github.com/codepil0t/laravel-country-flags)[ Packagist](https://packagist.org/packages/codepil0t/laravel-country-flags)[ RSS](/packages/codepil0t-laravel-country-flags/feed)WikiDiscussions main Synced 2d ago

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

LaravelCountryFlags Package for Laravel
=======================================

[](#laravelcountryflags-package-for-laravel)

[![GitHub](https://camo.githubusercontent.com/dbd57cc833b9148c74f1c003f77cc40dcbf3cc29eff123f7e1f51b56a2a0e129/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f636f646570696c30742f6c61726176656c2d636f756e7472792d666c616773)](https://github.com/codepil0t/laravel-country-flags)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This package provides country flags for Laravel applications (compatible with Laravel 8+ up to Laravel 12).

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

[](#installation)

Install via Composer:

```
composer require codepil0t/laravel-country-flags
```

Publishing Assets
-----------------

[](#publishing-assets)

Publish the flag assets to your public directory:

```
php artisan vendor:publish --tag=flags
```

This will copy the flags to `public/flags/`.

Usage
-----

[](#usage)

### In Blade Templates

[](#in-blade-templates)

Use the `@flag` directive:

```

```

Or use the helper function:

```

```

You can specify the aspect ratio (1x1 or 4x3, default is 4x3):

```

```

### In PHP

[](#in-php)

```
echo flag_url('de'); // /flags/4x3/de.svg
```

Supported Countries
-------------------

[](#supported-countries)

All ISO 3166-1 alpha-2 country codes are supported.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance60

Regular maintenance activity

Popularity14

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

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

256d ago

### Community

Maintainers

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

---

Tags

bladecountry-flagsflagsiso3166laravelpackagephp

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[illuminate/view

The Illuminate View package.

13047.0M2.2k](/packages/illuminate-view)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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