Scene: When doing development encounter emoji head; display is not normal;
Limitations: This compilation is applied in the thinkphp framework;
Emoji Library is mainly a replacement idea, because it corresponds to the Emoji of several mainstream devices ; so if it's all used emoji the original - The code may be in conflict, so the corresponding version of the library, this can be converted to each other , and finally made a display of HTML ;
Step One: Add two classes to the public class library
There is no specification for capitalization here;
Emoji is a public library that is downloaded online;
Emojison is used to handle The Library of the corresponding HTML;
Step two: Add under Static files
Invoke instance:
:
Above effect PC test;
Also via iphone4s 5s 6 and honor 6
File: no test code included;
Https://git.oschina.net/bingoPureLife/Some-Files-very-useful/raw/master/thinkphp-emoji.zip
Thanks to the class library provider;
PHP emoji class library use;