PHP code example of kennynguyeenx / facebook-sticker

1. Go to this page and download the library: Download kennynguyeenx/facebook-sticker 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/ */

    

kennynguyeenx / facebook-sticker example snippets


use Kennynguyeenx\FacebookSticker\FacebookSticker;

try {
    $facebookSticker = new FacebookSticker();
    $facebookSticker->createAnimatedSticker(
        $sourceImagePath,
        $destinationImagePath,
        $numOfRows,
        $numOfCols,
        $numOfFrames
    );
} catch (Exception $exception) {
    // Handle exception
}

$ php ./bin/create_sticker.php ./images/source/example-stickers.png ./images/destination/animated.gif 4 5 20