这是indexloc提供的服务,不要输入任何密码
Skip to content

r3sult/emoji

Repository files navigation

Programatically work with emoji characters in PHP 7

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

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

echo "😃";

This package provides some functionality to work with emoji's 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.

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 your can use the shorter method by leaving off "character" and using camelCase:

Emoji::grinningFace();

This package contains all characters listed on http://unicode.org/emoji/charts/full-emoji-list.html (retrieval date: 2016-02-07)

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

We are accepting PR's 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.

About

Programatically work with emoji characters

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.3%
  • HTML 0.7%