2017 © Pedro Peláez
 

library php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

image

iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

  • Saturday, November 25, 2017
  • by iamcal
  • Repository
  • 85 Watchers
  • 1105 Stars
  • 5,311 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 264 Forks
  • 13 Open issues
  • 3 Versions
  • 42 % Grown

The README.md

php-emoji - Process Emoji in PHP

Build Status, (*1)

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML., (*2)

You can read more about it and see a demo here: http://www.iamcal.com/emoji-in-web-apps/, (*3)

The data this library is based on comes from another GitHub project: https://github.com/iamcal/emoji-data, (*4)

USAGE

<?php
include('emoji.php');


# when you recieve text from a mobile device, convert it
# to the unified format.

$data = emoji_docomo_to_unified($data);   # DoCoMo devices
$data = emoji_kddi_to_unified($data);     # KDDI & Au devices
$data = emoji_softbank_to_unified($data); # Softbank & pre-iOS6 Apple devices
$data = emoji_google_to_unified($data);   # Google Android devices


# when sending data back to mobile devices, you can
# convert back to their native format.

$data = emoji_unified_to_docomo($data);   # DoCoMo devices
$data = emoji_unified_to_kddi($data);     # KDDI & Au devices
$data = emoji_unified_to_softbank($data); # Softbank & pre-iOS6 Apple devices
$data = emoji_unified_to_google($data);   # Google Android devices


# when displaying data to anyone else, you can use HTML
# to format the emoji.

$data = emoji_unified_to_html($data);

# if you want to use an editor(i.e:wysiwyg) to create the content, 
# you can use html_to_unified to store the unified value.

$data = emoji_html_to_unified(emoji_unified_to_html($data));

When using the HTML format, you'll also need to include the emoji.css file, which points to the emoji.png image., (*5)

IMPORTANT NOTE: This library currently only deals with UTF-8. If your source data is JIS or Shift-JIS, you're out of luck for the moment., (*6)

Credits

By Cal Henderson cal@iamcal.com, (*7)

Images and Emoji data come from emoji-data., (*8)

This work is dual-licensed under the GPL v3 and the MIT license., (*9)

Version History

  • v1.0.0 - 2009-10-20 : First release
  • v1.2.0 - 2011-03-27 : ?
  • v1.3.0 - 2011-07-27 : ?
  • v1.4.0 - 2016-02-15 : Switch to using emoji-data as the backend, at v2.4.0
  • v1.4.1 - 2016-10-06 : Added emoji_contains_emoji(), added travis
  • v1.4.2 - 2017-03-03 : Support for unified modifiers when converting to/from HTML only (issue #34)

The Versions

25/11 2017

dev-master

9999999-dev https://github.com/iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

  Sources   Download

MIT

The Requires

  • php >=5.0

 

converter convert emoji

04/03 2017

v1.4.2

1.4.2.0 https://github.com/iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

  Sources   Download

MIT

The Requires

  • php >=5.0

 

converter convert emoji

06/10 2016

dev-phoenix-mstu-master

dev-phoenix-mstu-master https://github.com/iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

  Sources   Download

MIT

The Requires

  • php >=5.0

 

converter convert emoji