PHP Classes

PHP Emoji: Render Emoji Unicode text characters with images

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 249 This week: 1All time: 7,928 This week: 571Up
Version License PHP version Categories
php-emoji 0.1GNU General Publi...5.3HTML, PHP 5, Graphics, Text processing
Description 

Author

This package can render Emoji Unicode text characters with images.

It can take given text with Emoji characters encoded using Unicode and replaces them with HTML image tags to display the respective icon images.

The supported Emoji characters are configured in files defined in the JSON format. More Emoji character sets can be supported adding more Emoji configuration files.

Innovation Award
PHP Programming Innovation award nominee
November 2015
Number 10


Prize: One downloadable copy of Komodo IDE
Over the years Emojis became more and more popular to let the users express emotions using graphical icons in text messages. Therefore Unicode has been improved to include Emoji icons as text characters.

This class can render text with Emoji text characters using icon images, so you do not need a special font for rendering the Unicode Emoji text characters.

Manuel Lemos
Picture of Maicon gonçalez
  Performance   Level  
Name: Maicon gonçalez <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 29
All time rank: 2471171 in Brazil Brazil
Week rank: 420 Up38 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Recommendations

Convert Emoji Charaters
I want to replace Emoji Characters

Example

<?php
header
('Content-Type: text/html; charset=utf-8');

require_once(
"Emoji/Emoji.php");
use
Emoji\EmojiReplace\Emoji as EmojiClass;

$Emoji = new EmojiClass();

//Set Dir Assets (Ex: http://domain.com/Emoji/AssetsEmoji/)
$Emoji->setDirAssets("./Emoji/AssetsEmoji/");

//Set Pack Icons
// Options -> IconsB&W, IconsIphone, IconsAndroid, IconsTwitter, IconsWind

/* Download Packs https://github.com/Dellacurtais/PHP-Emoji/tree/master/Emoji/AssetsEmoji/Icons
* Extract On Dir Assets (ex: ./Emoji/AssetsEmoji/)
*/
$Emoji->setDirPack("IconsIphone");

// Generate Emojis (important)
$Emoji->generateEmoji();

//$Emoji->getCss()

//Exemplo
echo '<link rel="stylesheet" href="'.$Emoji->getCss().'" />';
echo
'<p style="font-size:40px"> Olá ';
echo
$Emoji->TextReplace('?');
echo
'</p>';


Details

PHP-Emoji

PHP Emoji, Classe para substituir emojis por ícones.

Extrac Pack Icons on Emoji/AssetsEmoji/Icons/

Full Docs - emojiphp.inclouds.com.br


Screenshots  
  • View
  Files folder image Files  
File Role Description
Files folder imageEmoji (2 files, 2 directories)
Accessible without login Plain text file README.md Data Auxiliary data
Accessible without login Plain text file texte.php Example Example script

  Files folder image Files  /  Emoji  
File Role Description
Files folder imageAssetsEmoji (1 file, 2 directories)
Files folder imageDataJson (2 files)
  Plain text file Emoji.php Class Class source
  Plain text file EmojiSets.php Class Class source

  Files folder image Files  /  Emoji  /  AssetsEmoji  
File Role Description
Files folder imageIcons (1 file)
Files folder imageIconsNeed (1 file)
  Accessible without login Plain text file emoji.css Data Auxiliary data

  Files folder image Files  /  Emoji  /  AssetsEmoji  /  Icons  
File Role Description
  Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  Emoji  /  AssetsEmoji  /  IconsNeed  
File Role Description
  Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  Emoji  /  DataJson  
File Role Description
  Accessible without login Plain text file emoji.json Data Auxiliary data
  Accessible without login Plain text file emojiList.json Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 90%
Total:249
This week:1
All time:7,928
This week:571Up