PHP API Wrapper for screeenly.com
PHP Wrapper for the Screeenly API. You must have a Screeenly account to use this package.
Important notice: This package has been abandoned! I want to focus on more useful projects and the screeenly API is already very easy to use.
Install the package with composer:
$ composer require "wnx/screeenly-client:~2.0"
$ composer require "wnx/screeenly-client:~1.0"
For Laravel 4 prjoects:
$ composer require "wnx/screeenly-client:~0.3"
Read more for Laravel 4 usage.
Add the following code to your
providers array in
Publish the configration file and add your Screeenly API Key in
php artisan vendor:publish --provider="Wnx\ScreeenlyClient\ScreeenlyClientServiceProvider"
Now you have access to the Screenshot Facade. Use it like the example below:
$path = public_path('/'); $screenshot = Screenshot::capture('http://google.com'); $localPath = $screenshot->store($path, 'screenshot.jpg');
use Wnx\ScreeenlyClient\Screenshot; ... $screenshot = new Screenshot($key); $screenshot->capture('http://google.com'); $localPath = $screenshot->store('path/to/image/store/', 'screenshot.jpg');
Create Screenshot of given URL.
Store screenshot on local disk. Returns path to image.
Optional. Set screenshot height.
Optional. Set screenshot width.
Return path to temporary image on Screeenly server.
Return base64-string for screenshot.