\EmojioneClientInterface

Summary

Methods
Constants
toImage()
unifyUnicode()
shortnameToUnicode()
shortnameToAscii()
shortnameToImage()
toShort()
unicodeToImage()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

toImage()

toImage(string  $string) : string

First pass changes unicode characters into emoji markup.

Second pass changes any shortnames into emoji markup.

Parameters

string $string

The input string.

Returns

string —

String with appropriate html for rendering emoji.

unifyUnicode()

unifyUnicode(string  $string) : string

Uses toShort to transform all unicode into a standard shortname then transforms the shortname into unicode.

This is done for standardization when converting several unicode types.

Parameters

string $string

The input string.

Returns

string —

String with standardized unicode.

shortnameToUnicode()

shortnameToUnicode(string  $string) : string

This will output unicode from shortname input.

If Client/$ascii is true it will also output unicode from ascii. This is useful for sending emojis back to mobile devices.

Parameters

string $string

The input string.

Returns

string —

String with unicode replacements.

shortnameToAscii()

shortnameToAscii(string  $string) : string

This will replace shortnames with their ascii equivalent.

ex. :wink: --> ;^) This is useful for systems that don't support unicode or images.

Parameters

string $string

The input string.

Returns

string —

String with ascii replacements.

shortnameToImage()

shortnameToImage(string  $string) : string

This will output image markup (for png or svg) from shortname input.

Parameters

string $string

The input string.

Returns

string —

String with appropriate html for rendering emoji.

toShort()

toShort(string  $string) : string

This will return the shortname from unicode input.

Parameters

string $string

The input string.

Returns

string —

shortname

unicodeToImage()

unicodeToImage(string  $string) : string

This will output image markup (for png or svg) from unicode input.

Parameters

string $string

The input string.

Returns

string —

String with appropriate html for rendering emoji.