PHP code example of arturek1 / screenshot
1. Go to this page and download the library: Download arturek1/screenshot 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/ */
arturek1 / screenshot example snippets
use Arturek1\Screenshot\Screenshot;
$key = "GOOGLE API KEY";
$url = "https://tvn24.pl";
$screenshot = new Screenshot($key);
$base64 = $screenshot->get($url);
echo $base64;