PHP code example of hashworks / phergie-plugin-gif-to-gfycat

1. Go to this page and download the library: Download hashworks/phergie-plugin-gif-to-gfycat 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/ */

    

hashworks / phergie-plugin-gif-to-gfycat example snippets


// dependency
new \WyriHaximus\Phergie\Plugin\Dns\Plugin,
new \WyriHaximus\Phergie\Plugin\Http\Plugin(array('dnsResolverEvent' => 'dns.resolver')),
new \hashworks\Phergie\Plugin\GifToGfycat\Plugin(array(
    // Optional. Sets the prefix for posted Gfycat links
    'prefix' => '[GIF to WEBM] ',
    // Optional. Sets the maximum number of links getting converted per PRIVMSG
    'limit' => 10
))