2017 © Pedro Peláez
 

library emoji

Display emoji characters

image

spatie/emoji

Display emoji characters

  • Thursday, July 5, 2018
  • by Spatie
  • Repository
  • 9 Watchers
  • 143 Stars
  • 35,012 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 20 Forks
  • 0 Open issues
  • 14 Versions
  • 10 % Grown

The README.md

Programatically work with emoji characters

Latest Version on Packagist Software License Tests Total Downloads, (*1)

In PHP, you can display emoji characters just by typing them:, (*2)

echo "😃";

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

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., (*4)

Support us

, (*5)

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products., (*6)

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall., (*7)

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., (*8)

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium., (*9)

The best postcards will get published on the open source page on our website., (*10)

Install

You can install the package via composer: ``` bash composer require spatie/emoji, (*11)


## Usage The `Spatie\Emoji\Emoji`-class contains character constants that may be used directly: ```php Emoji::CHARACTER_GRINNING_FACE;

Or you can use the shorter method by leaving off "character" and using camelCase:, (*12)

Emoji::grinningFace();

If you want to get an array containing all emojis, you can use this method:, (*13)

Emoji::all();
 ```

You can also use an [ISO 3166 Alpha2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code and get the appropriate flag for the country:
```php
Emoji::countryFlag('be'); // 🇧🇪

This package contains Full Emoji List v13.1 based on https://unicode.org/Public/emoji/13.1/emoji-test.txt all methods and constants are auto-generated., (*14)

Changelog

Please see CHANGELOG for more information what has changed recently., (*15)

Testing

bash $ composer test, (*16)

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., (*17)

Please see CONTRIBUTING for details., (*18)

Security

If you've found a bug regarding security please mail security@spatie.be instead of using the issue tracker., (*19)

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., (*20)

License

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

The Versions

05/07 2018

dev-master

9999999-dev https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

05/07 2018

1.0.7

1.0.7.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

05/07 2018

dev-analysis-qxY4rb

dev-analysis-qxY4rb https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

04/05 2018

dev-analysis-Xkj2EA

dev-analysis-Xkj2EA https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

23/05 2017

dev-analysis-XNDyOg

dev-analysis-XNDyOg https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

23/05 2017

1.0.6

1.0.6.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

27/09 2016

1.0.5

1.0.5.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

27/09 2016

dev-analysis-8PBOEW

dev-analysis-8PBOEW https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

11/02 2016

1.0.4

1.0.4.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

11/02 2016

1.0.3

1.0.3.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

11/02 2016

1.0.2

1.0.2.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

07/02 2016

1.0.1

1.0.1.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

07/02 2016

1.0.0

1.0.0.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji

07/02 2016

0.0.1

0.0.1.0 https://github.com/spatie/emoji

Display emoji characters

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

spatie emoji