forked from Dellacurtais/PHP-Emoji
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtexte.php
29 lines (21 loc) · 789 Bytes
/
texte.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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>';