⚡ Free · MIT Licensed · Laravel 5.5+

Country & Language
Flag Icons for Laravel

Display emoji-style flag icons anywhere in your Blade templates with a single component. 250+ countries, 100+ languages. Powered by Twitter Twemoji.

$ composer require pola5h/laravel-flags
🌍 250+ Countries 💬 100+ Languages ✨ Twemoji Style 🆓 Free Forever
🇺🇸
us
🇬🇧
gb
🇧🇩
bd
🇩🇪
de
🇫🇷
fr
🇯🇵
jp
🇧🇷
br
🇮🇳
in
🇨🇦
ca
🇦🇺
au
🇰🇷
kr
🇨🇳
cn
🇲🇽
mx
🇮🇩
id
🇳🇱
nl
🇸🇬
sg
🇸🇦
sa
🇿🇦
za
🇦🇷
ar
🇵🇰
pk
🇺🇸
us
🇬🇧
gb
🇧🇩
bd
🇩🇪
de
🇫🇷
fr
🇯🇵
jp
🇧🇷
br
🇮🇳
in
🇨🇦
ca
🇦🇺
au
🇰🇷
kr
🇨🇳
cn
🇲🇽
mx
🇮🇩
id
🇳🇱
nl
🇸🇬
sg
🇸🇦
sa
🇿🇦
za
🇦🇷
ar
🇵🇰
pk

One component. Any flag.

Install the package, use the Blade component anywhere in your views. No config required — it just works.

country-flags.blade.php
{{-- Country flag by ISO code --}}
<x-flag-icon
  type="country"
  code="us"
  width="24px"
  height="24px"
/>

{{-- Dynamic from model --}}
<x-flag-icon
  type="country"
  code="{{ $user->country_code }}"
  width="20px"
/>
language-flags.blade.php
{{-- Language flag by ISO code --}}
<x-flag-icon
  type="language"
  code="bn"
  width="24px"
  height="24px"
/>

{{-- Dynamic locale switcher --}}
<x-flag-icon
  type="language"
  code="{{ app()->getLocale() }}"
  width="20px"
/>
terminal
# 1. Install via Composer
$ composer require pola5h/laravel-flags

# 2. Auto-registered on Laravel 5.5+
#    No manual config needed

# 3. Use anywhere in Blade
<x-flag-icon type="country" code="bd" />
locale-switcher-example.blade.php
{{-- Locale switcher with flags --}}
@foreach ($locales as $locale)
  <a href="{{ route('locale', $locale) }}">
    <x-flag-icon
      type="language"
      code="{{ $locale }}"
      width="18px"
    />
    {{ strtoupper($locale) }}
  </a>
@endforeach

Twemoji emoji flags

The familiar emoji flag style — consistent across all browsers and platforms. No SVG files to manage.

🇺🇸United Statesus
🇬🇧United Kingdomgb
🇧🇩Bangladeshbd
🇩🇪Germanyde
🇫🇷Francefr
🇯🇵Japanjp
🇧🇷Brazilbr
🇮🇳Indiain
🇨🇦Canadaca
🇦🇺Australiaau
🇰🇷South Koreakr
🇸🇬Singaporesg

Everything you need

Simple by design. No dependencies beyond Laravel itself.

🌍

250+ Country Flags

Every country in the world is covered using ISO 3166-1 alpha-2 codes. From Afghanistan to Zimbabwe.

💬

100+ Language Flags

Language flags mapped to the primary country for that language. Bengali → Bangladesh, Arabic → Saudi Arabia.

Twemoji Style

Uses Twitter's Twemoji emoji set — the same friendly flags users see on their phones. Familiar and consistent.

Zero Config

Auto-registered on Laravel 5.5+. Install, use. No publishing, no config files, no setup steps.

📐

Resizable

Pass width and height as component attributes. Works at any size from tiny inline icons to large display flags.

🆓

Free & MIT

Completely free, open source, MIT licensed. Use it in any personal or commercial project without restrictions.

Common questions

Install with composer require pola5h/laravel-flags, then use the component: <x-flag-icon type="country" code="us" />. Replace us with any ISO 2-letter country code like bd, gb, or de.
This package uses the Twitter Twemoji emoji flag style — the same flags people see on their phones and social media. Other packages use SVG rectangular flags. Twemoji flags feel more familiar and modern, especially in user-facing interfaces like locale switchers.
Yes — use type="language" with an ISO language code: <x-flag-icon type="language" code="bn" />. Each language maps to the country most associated with it. Bengali (bn) maps to Bangladesh, Arabic (ar) maps to Saudi Arabia, and so on.
Laravel 5.5 and above. The service provider is auto-registered on Laravel 5.5+ so no manual registration is needed. Compatible with Laravel 6, 7, 8, 9, 10, 11, and 12.
Yes, completely free and MIT licensed. Use it in any project — personal, commercial, or client work — with no restrictions or attribution required.

Start displaying flags in minutes

One composer command and you're done. Free forever.