nordicalf / zenscrape
Zenscrape service
v1.0.0
2022-01-17 10:05 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.4
- symfony/property-access: ^6.0
- symfony/serializer: ^6.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/profiler-pack: ^1.0
This package is auto-updated.
Last update: 2025-03-17 17:11:47 UTC
README
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