Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Blade Flags Laravel Package

outhebox/blade-flags

1,759 SVG country and language flags for Laravel Blade plus Vue, React, and vanilla JS. Includes default, circle, and flat variants, 128 language mappings, and locale/regional support (e.g., en-US, fr-CA). Great for switchers and forms.

View on GitHub
Deep Wiki
Context7
1.7.0

What's Changed

  • Laravel 13.x compatibility (#28)
  • Fix flag components not respecting CSS size classes
  • Fix tests for PHPUnit 12 compatibility
js-v0.1.3

Fix

  • Fix flag components not respecting CSS size classes (size-4, shrink-0, etc.)
    • Strip hardcoded width/height from SVGs, use width:100%;height:100% so the SVG fills its container
    • Add display:inline-flex to the span wrapper

Affected packages: [@blade-flags](https://github.com/blade-flags)/core, [@blade-flags](https://github.com/blade-flags)/react, [@blade-flags](https://github.com/blade-flags)/vue

js-v0.1.2

This package aims for broad compatibility by mirroring upstream flag collections. Inclusion of any flag does not imply endorsement. The author of this package stands with Palestine (the Palestine flag is featured in the project cover). If you want to exclude specific flags, you can do so in your application/UI, or exclude them during the build via bin/build.sh.

1.6.1

This package aims for broad compatibility by mirroring upstream flag collections. Inclusion of any flag does not imply endorsement. The author of this package stands with Palestine (the Palestine flag is featured in the project cover). If you want to exclude specific flags, you can do so in your application/UI, or exclude them during the build via bin/build.sh.

js-v0.1.1

Fixed

  • Add README files to npm packages
js-v0.1.0

Initial Release — JavaScript Packages

First release of the JavaScript flag packages, providing the same 1,759 SVG flags from blade-flags as tree-shakeable JS modules.

Packages

Package Description
[@blade-flags](https://github.com/blade-flags)/core SVG strings as JS modules + resolveFlag() helper
[@blade-flags](https://github.com/blade-flags)/vue <Flag> component for Vue 3.3+
[@blade-flags](https://github.com/blade-flags)/react <Flag> component for React 18+

Installation

npm install [@blade-flags](https://github.com/blade-flags)/core [@blade-flags](https://github.com/blade-flags)/vue   # Vue
npm install [@blade-flags](https://github.com/blade-flags)/core [@blade-flags](https://github.com/blade-flags)/react  # React
npm install [@blade-flags](https://github.com/blade-flags)/core                     # Vanilla JS

Tree-Shaking

Every flag is a named export — import only what you need:

import { countryUs, countryGb } from '[@blade-flags](https://github.com/blade-flags)/core/flags/circle'

Or use the full variant map for dynamic runtime lookup:

import { circleFlags } from '[@blade-flags](https://github.com/blade-flags)/core/flags/circle'
import { resolveFlag } from '[@blade-flags](https://github.com/blade-flags)/core'
const svg = resolveFlag(circleFlags, 'us')
1.6.0

What's New

Circle & Flat Flag Variants

The package now ships with three flag styles — 1,759 flags total:

Variant Component Countries Languages
Default (rounded) <x-flag-country-us /> 264 281
Circle <x-flag-circle-country-us /> 405 275
Flat (4:3) <x-flag-flat-country-us /> 270 264

Language Flag Overrides

Override default language-to-country mappings via config:

// config/blade-flags.php
'language_overrides' => [
    'ar' => ['default' => 'sa'],
    'en' => ['default' => 'us'],
],

JavaScript Packages

The same flags are now available as npm packages for Vue, React, and vanilla JS:

  • [@blade-flags](https://github.com/blade-flags)/core — SVG strings as tree-shakeable JS modules
  • [@blade-flags](https://github.com/blade-flags)/vue<Flag> component for Vue 3
  • [@blade-flags](https://github.com/blade-flags)/react<Flag> component for React 18+
npm install [@blade-flags](https://github.com/blade-flags)/core [@blade-flags](https://github.com/blade-flags)/vue

Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.4...1.6.0

1.5.2

What's Changed

New Contributors

Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.1...1.5.2

1.2.1

Fix fallback icon not working!

1.2.0

Add support for Laravel 10

1.1.2

Add support for Laravel 8

1.1.1

Add missing flags #8 , #9 Add a default fallback flag if the requested flag is missing in the config

1.1.0
1.0.4

Add Kurdistan Flag for the Kurdish language #4 by @renwarkurd Correct the language code for Iraq Arabic language #5 by @renwarkurd

1.0.3

Correct the Basque language flag (#1)

1.0.2
1.0.1

Use twemoji flags instated of circle-flags

1.0.0

Initial release

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle