定制 m-tymchyk/emoji-flag 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

m-tymchyk/emoji-flag

最新稳定版本:v1.0

Composer 安装命令:

composer require m-tymchyk/emoji-flag

包简介

Library that help convert country ISO codes to emoji flags

README 文档

README

Converts string of country codes to string of emoji flags. As an argument use a single 2-letter country code or a string of multiple codes.

composer require m-tymchyk/emoji-flag
use EmojiFlag\EmojiFlag;

# Single flag
echo EmojiFlag::emojiFlag('uk'); # 🇬🇧

# String of multiple flags
echo EmojiFlag::emojiFlag('ukcwsxap'); # 🇬🇧🇳🇱🇳🇱🏴

Why Emoji

Emoji symbol is a textual replacement for a graphic image file while having the benefits of a graphic image. The image file is already present at your intended destination (a person's device), so why would you transmit the image to them again and again? -- Use emoji!

Emoji Support

Not every platform (hardware + OS) supports emoji. Therefore, use with caution! To my knowledge, iOS, macOS, Android are capable of displaying emoji. Additionally, some platforms may not be able to display certain flags. If unsure, use this as a reference and easy way to test your platform: http://unicode.org/emoji/charts/full-emoji-list.html

Plain Text Is Now 😎 Faux Rich Text

Now you can include emoji in plain text files, even in plain text emails, making them sharp, colourful and rich looking. You can put emoji flags into your database too!

♻ Green Technology ♻

An image file equivalent to an emoji symbol may be tens, hundreds of kilobytes in size, while an emoji symbol is only several bytes. That's a bandwidth saving of around 10,000 times. If you use emoji instead of image files, you reduce your carbon footprint.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固