PHP code example of gam6itko / s-shot

1. Go to this page and download the library: Download gam6itko/s-shot 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/ */

    

gam6itko / s-shot example snippets


$builder = new UrlBuilder('API_KEY');
$builder->build('https://google.com', [
    'resolution' => '1024x768',
    //or 'resolution' => '1024',
    'size' => 400,
    'format' => 'jpeg',
    'scale' => 100,
    'timeout' => 2,
    'delay' => 3,
    'jsSupport' => true,
    'flashSupport' => true,
    'proxy' => 'proxy.com:8080',
    'cookies' => 'CookieString',
    'referer' => 'my-site.ru',
    'userAgent' => 'Internet Explorer 3.0',
]);
// https://api.s-shot.ru/API_KEY/1024x768/400/JPEG/Z100/T2/D3/JS1/FS0/PX(proxy.com:8080)/CK(CookieString)/RF(my-site.ru)/UA(Internet+Explorer+3.0)/?https://google.com