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(6mo ago)2241MITPHPPHP &gt;=7.3

Since Oct 20Pushed 6mo 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 1mo 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

31

—

LowBetter than 68% of packages

Maintenance66

Regular maintenance activity

Popularity17

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

204d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b721cb536fb71ca966f28aeee2e1f74996770d7bebf7aeb02258e9c6f092fea?d=identicon)[fedoruk](/maintainers/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.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[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.

44643.1k1](/packages/pressbooks-pressbooks)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)

PHPackages © 2026

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