Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arturnawrot/screenshot

PHP - Take a screenshot of a webpage using Google API
https://github.com/arturnawrot/screenshot

Last synced: 9 days ago
JSON representation

PHP - Take a screenshot of a webpage using Google API

Awesome Lists containing this project

README

        

# php-screenshot
Take a screenshot of a webpage using Google API

```composer require arturek1/screenshot```
```php
require __DIR__ . '/vendor/autoload.php';

use Arturek1\Screenshot\Screenshot;

$key = "GOOGLE API KEY";

$url = "https://tvn24.pl";
$screenshot = new Screenshot($key);
$base64 = $screenshot->get($url);

echo $base64;
```