emoji

Programatically work with emoji characters in PHP 7

  • 所有者: spatie/emoji
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Programatically work with emoji characters

Latest Version on Packagist
Software License
Build Status
Quality Score
StyleCI
Total Downloads

In PHP, you can display emoji characters just by typing them:

echo "?";

This package provides some functionality to work with emojis if your IDE or used font can't render them correctly:

Emoji::grinningFace();

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

The best postcards will get published on the open source page on our website.

Install

You can install the package via composer:

composer require spatie/emoji

Usage

The Spatie\Emoji\Emoji-class contains character constants that may be used directly:

Emoji::CHARACTER_GRINNING_FACE;

Or you can use the shorter method by leaving off "character" and using camelCase:

Emoji::grinningFace();

You can also use an ISO 3166 Alpha2 country code and get the appropriate flag for the country:

Emoji::countryFlag('be'); // ??

This package contains Full Emoji List v12.0 based on https://unicode.org/Public/emoji/12.0/emoji-test.txt all methods and constants are auto-generated.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

We are accepting PRs that add characters to the class.
Please use this list to look up the unicode value and
the name of the character.

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

主要指標

概覽
名稱與所有者spatie/emoji
主編程語言PHP
編程語言PHP (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2016-02-07 11:33:22
推送於2024-03-07 06:58:42
最后一次提交
發布數22
最新版本名稱4.1.1 (發布於 )
第一版名稱0.0.1 (發布於 )
用户参与
星數456
關注者數9
派生數48
提交數203
已啟用問題?
問題數7
打開的問題數0
拉請求數45
打開的拉請求數0
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?