1. Go to this page and download the library: Download doklibs/browserless-sdk 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/ */
doklibs / browserless-sdk example snippets
$url = "https://google.com";
$servers = [new \DokLibs\Browserless\Host('http://localhost:6130/')];
$browserless = new \DokLibs\Browserless\Client($servers);
echo $browserless->content($url, new \DokLibs\Browserless\Options\DisableJavascript)->getBody()->getContents());
$option = (new \DokLibs\Browserless\Options\ScreenShot)->merge(
new \DokLibs\Browserless\Options\DisableGaAndAds()
);
$browserless->screenshot($url, $option, './123dok.jpg');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.