PHP Zenscrape client via Guzzle
Zenscrape package is a simple PHP HTTP client-provider that makes it easy to parsing site-pages via https://zenscrape.com
Requirements
↟PHP 8.0^
↟Guzzle 7.0^
↟Symfony/serializer
↟Symfony/property-access
Installation
composer require nordicalf/zenscrape
Example usage
$queryRequest = new QueryRequestModel();
$queryRequest->setRender(true);
$queryRequest->setLocation('eu');
$queryRequest->setUrl('https://www.php.net/');
$headersRequest = new HeaderRequestModel();
$headersRequest->setCustomHeader('Content-Type', 'application/json');
$zenscrapeClient = new ZenscrapeClient('YOUR_API_KEY_FROM_ZENSCRAPE.COM');
echo $zenscrapeClient->getPage('POST', $queryRequest, $headersRequest);
Future features
↟ Сalculate how many points it costs to complete a request
↟ Timer for make request
↟ Async requests