agatanga/flags
最新稳定版本:1.2.0
Composer 安装命令:
composer require agatanga/flags
包简介
Country flags in SVG format for Laravel application.
README 文档
README
Country flags in SVG format for your Laravel application. Uses lipis/flag-icons icons under the hood.
Installation
composer require agatanga/flags
Usage
Directive
// Render flag using default ratio: @flag('us') // Tell what ratio to use, which classes, and attributes to add to the svg element: @flag('us:1x1', 'w-64', ['id' => 'flag-us'])
Helper
// Render flag using default ratio: {{ flag('us') }} // Tell what ratio to use, which classes, and attributes to add to the svg element: {{ flag('us:1x1', 'w-64', ['id' => 'flag-us']) }}
Configuration
You may configure the default ratio to use, and default css classes to add:
php artisan vendor:publish --provider="Agatanga\Flags\FlagsServiceProvider"
vi config/flags.php
Credits
- lipis/flag-icons - Wonderful SVG flags.
- blade-ui-kit/blade-icons - Code and Idea.
统计信息
- 总下载量: 41.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-06