dionarya6661 / dap_emot
There is no license information available for the latest version (dev-master) of this package.
Simple class to determine the output emoticon
dev-master
2017-12-24 10:45 UTC
This package is not auto-updated.
Last update: 2025-07-10 22:55:40 UTC
README
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