Weave 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
Flagiconcss Bundle

Flagiconcss Bundle Laravel Package

st/flagiconcss-bundle

st/flagiconcss-bundle integrates flag-icon-css into Symfony applications, letting you render country flags with CSS classes in templates, forms, and dashboards. No image assets to manage; lightweight, simple to configure, and handy for locale selectors, profiles, and country lists.

View on GitHub
Deep Wiki
Context7

FlagIconCss Bundle for Symfony2

Frequently asked questions about Flagiconcss Bundle
Is st/flagiconcss-bundle a Laravel package?
No. It is a Symfony2 bundle that wraps the upstream flag-icon-css asset library, and Laravel has no bundle concept. The only reusable part in a Laravel application is the underlying CSS and SVG flag asset.
Can I install st/flagiconcss-bundle in Laravel 10 or 11?
Composer may attempt it, but Symfony2-era constraints typically pin PHP and symfony/* versions that conflict with Laravel 10 or 11 on PHP 8.2 and 8.3. Installing with --ignore-platform-reqs or conflict hacks is not a supported integration and can pull an unused Symfony HTTP kernel into your app. Treat a platform-constraint failure as a stop signal.
Does st/flagiconcss-bundle support PHP 8.2 and PHP 8.3?
It is unlikely to resolve cleanly because the bundle dates from the Symfony2 era and usually declares old PHP and Symfony constraints. Even if Composer installs it with overrides, the bundle class extends Symfony's Bundle class, which is not useful in Laravel. Validate your actual runtime against the direct flag-icon-css approach instead.
How do I render country flags in Laravel Blade without this bundle?
Install flag-icon-css via npm and import it through Vite, or vendor the CSS and SVG files into resources. Then create a Blade component or an @flag directive that outputs a span with the base flag-icon class and the country-specific flag-icon-xx class. This keeps call sites clean and avoids raw class strings.
What does st/flagiconcss-bundle actually contain?
It is a thin Symfony2 wrapper around the upstream flag-icon-css asset library, providing static CSS and SVG flag files plus Symfony bundle and asset-publishing wiring. There is no meaningful application logic. Any Twig helper it ships would need to be reimplemented as a Blade component or directive in Laravel.
What are the best alternatives to st/flagiconcss-bundle for Laravel?
Use flag-icon-css directly via npm and Vite, or vendor the assets if you do not want a JavaScript toolchain. If you need Composer-managed publishing, write a small first-party Laravel service provider that publishes to public/vendor/flags. A Blade component or directive gives you the same ergonomics as the bundle's Twig helper.
Is st/flagiconcss-bundle maintained and safe for production?
The package shows zero stars and zero dependents and is a Symfony2-era wrapper, which strongly suggests abandonment. The upstream flag-icon-css project has also been effectively unmaintained for years. The security surface is low because the assets are static CSS and SVG, but supply-chain and correctness risk are high, so avoid it in production.
How do I convert the bundle's Twig flag helper to Laravel Blade?
If the bundle registers a Twig extension, replicate the output in a Blade component or directive rather than bridging Twig into Laravel. The component should emit a span with the base flag-icon class and the country-specific flag-icon-xx class. That is roughly the same markup the Twig helper would produce and avoids adding a Symfony or Twig dependency.
What license does st/flagiconcss-bundle use and what attribution do I need?
The upstream flag-icon-css assets are MIT licensed, and the bundle likely inherits that license, but verify the repository LICENSE file and the pinned upstream version before shipping. Keep the upstream copyright and license notice with the vendored CSS and SVG files. Also check whether your flag list or jurisdiction has additional usage requirements.
How should I test st/flagiconcss-bundle before adopting it?
Test it only on a throwaway branch with your target PHP and Laravel versions, and record composer why-not output if resolution fails. Be prepared to abandon at the first platform-constraint failure instead of working around it. For a real feature, test the direct flag-icon-css plus Blade component path, since that is the integration you would actually own.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console