agatanga/flags 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

统计信息

  • 总下载量: 41.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固