PHP code example of hdvinnie / laravel-joypixel-emojis

1. Go to this page and download the library: Download hdvinnie/laravel-joypixel-emojis 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/ */

    

hdvinnie / laravel-joypixel-emojis example snippets


Comment::create([
  'content' => LaravelJoyPixels::toShort(request('content'))
]);

@joypixels($comment->content)

'imagePathPNG' => '/vendor/joypixels/png/64/',

'sprites' => true,
'spriteSize' => 32, // 32 or 64
 php
hdvinnie\LaravelJoyPixels\LaravelJoyPixelsServiceProvider::class,
 php
'LaravelJoyPixels' => hdvinnie\LaravelJoyPixels\LaravelJoyPixelsFacade::class,
 php
LaravelJoyPixels::toShort($str); // - native unicode -> shortnames
LaravelJoyPixels::shortnameToImage($str); // - shortname -> images
LaravelJoyPixels::unicodeToImage($str); // - native unicode -> images
LaravelJoyPixels::toImage($str); // - native unicode + shortnames -> images (mixed input)