/dap_emot

😄 😆 😊 😃 Sebuah Library Php Untuk mengeluarkan sistem emoticon terdapat 25 emoticon,

Primary LanguagePHP

Dap_emot PHP Library Emoticons

capture-20161229-211321.png
Sebuah Library Php Untuk mengeluarkan sistem emoticon terdapat 25 emoticon, masih dalam tahap beta (uji coba) Terinspirasi dari Parsedown PHP,
Create By : Dion Arya Pamungkas
http://dionarya6661.github.io
@DionArya_P on twitter

Cara Memakai

Silahkan Letakan Dap_emot.php di folder yang dibutuhkan lalu :

$Dap_emot = new Dap_emot();
echo $Dap_emot->emot('Tulisan Terdapat Emoticons :D :( :)');
Ouput -> Tulisan Terdapat Emoticons 😃 😟 🙂

Menjadikan sebagai library Codeigneter

Dap_emot juga bisa dijadikan sebagai library framework php codeigneter
Caranya:

  • Pertama silahkan download terlebih dahulu dap_emot.php
  • Kedua taruh dalam folder application/library
  • Dan yang terakhir panggil library tersebut kedalam sebuah controller
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Welcome extends CI_Controller {

	public function __construct(){
		parent::__construct();
		$this->load->library('dap_emot');
	}

//Untuk Output
echo $this->dap_emot->emot('Tulisan Terdapat Emoticons :D :( :)');

//atau
$text     = 'Tulisan Terdapat Emoticons :D :( :)';
$textBaru = $this->dap_emot->emot($text);
echo $textBaru;
Ouput -> Tulisan Terdapat Emoticons 😃 😟 🙂

Kelebihan

  • Emoticon berbentuk gambar langsung tanpa tag html <img
  • Cepat
  • Mudah Digunakan
  • Bisa dikombinasikan langsung dengan Parsedown

Library Kode Emotikon Terdapat 25 Emoticons

Kode Nama Hasil
:) happy 🙂
:( sad 😟
:P tongue 😛
:D grin 😃
:O wink 😮
;) kedip mata 😜
B) glasses 👓
B| subglasses 😎
>:( grumpy 😡
:/ unsure 😐
:'( cry 😢
#:) devil 😈
O:) angel 😇
:* kiss 😘
<3 heart 💓
^_^ kiki 😊
-_- squint 😑
o.O confused 😕
>:O upset 😣
:v yimyam
:3 curly lips 👄
:|] robot 👾
(y) like 👍
:tai poop 💩
(;) dislike 👎