mainstreamer/emojiisoflags-bundle

从 ISO 国家代码生成emoji国旗的库

安装: 6

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

类型:symfony-bundle

1.0.7 2020-08-02 10:37 UTC

This package is auto-updated.

Last update: 2024-09-29 05:42:49 UTC


README

License Latest Stable Version Total Downloads

Symfony 扩展,提供 FlagsGenerator 服务,用于从 ISO 国家代码获取 emoji 国旗

安装

composer require mainstreamer/emojiisoflags-bundle

使用

use Symfony\Component\HttpFoundation\Response;
use Rteeom\EmojiISOFlagsBundle\Service\FlagsGenerator;

class MyController 
{ 
 public function someAction(FlagsGenerator $generator): Response
    {
        $flag = $generator->getEmojiFlag('gb');

        return new Response($flag);
    }
}