Download the PHP package makkinga/laravel-flags without Composer
On this page you can find all versions of the php package makkinga/laravel-flags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download makkinga/laravel-flags
More information about makkinga/laravel-flags
Files in makkinga/laravel-flags
Package laravel-flags
Short Description A helper for placing SVG flags in your Laravel project
License MIT
Informations about the package laravel-flags
Laravel Flags
A helper for placing SVG flags in your Laravel project
Installation
Install using composer
Usage
Blade
Use this helper to place an SVG in a Blade view.
The country()
method expects an alpa-2 or alpha-3 ISO 3166-1 country code.
See this page for a complete list of all codes.
Config
If your locales differ from the ISO codes (e.g.: you use en
instead of gb
), you can optionally publish the cofig to alias the country codes.
flags.php
To alias the codes add your locales to the locales
array where the key is your locale and the value is the ISO country code:
Licence (MIT)
MIT License
Copyright (c) 2020 Gydo Makkinga [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All versions of laravel-flags with dependencies
illuminate/routing Version ^6|^7|^8
illuminate/session Version ^6|^7|^8
illuminate/support Version ^6|^7|^8