PHP code example of 48design / phmiley
1. Go to this page and download the library: Download 48design/phmiley library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
48design / phmiley example snippets
use FortyeightDesign\Phmiley\Phmiley;
n.php';
$Phmiley = new Phmiley();
$testString = "I would love to have some 🍕 right now! 🤤"
$Phmiley->parse($testString);
$Phmiley = new Phmiley([
'preset' => 'openmoji_svg'
]);
// or
$Phmiley->setPreset('openmoji_svg');