PHP code example of andkab / laravel-joypixels

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

    

andkab / laravel-joypixels 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
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)