Download the PHP package wnx/screeenly-client without Composer
On this page you can find all versions of the php package wnx/screeenly-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wnx/screeenly-client
More information about wnx/screeenly-client
Files in wnx/screeenly-client
Package screeenly-client
Short Description PHP API Wrapper for screeenly.com
License MIT
Homepage https://github.com/stefanzweifel/ScreeenlyClient
Informations about the package screeenly-client
ScreenlyClient
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.
Installation
Install the package with composer:
Guzzle v6:
Guzzle v5:
For Laravel 4 prjoects:
Usage
Laravel 5
Read more for Laravel 4 usage.
Add the following code to your providers
array in app/conifg/app.php
:
Publish the configration file and add your Screeenly API Key in config/screeenly_client.php
.
Now you have access to the Screenshot Facade. Use it like the example below:
Non-Laravel Usage
Available Methods
$screeenshot->capture($url);
Create Screenshot of given URL.
$screeenshot->store($path, $filename);
Store screenshot on local disk. Returns path to image.
$screeenshot->setHeight(integer);
Optional. Set screenshot height.
$screeenshot->setWidth(integer);
Optional. Set screenshot width.
$screeenshot->getPath();
Return path to temporary image on Screeenly server.
$screeenshot->getBase64();
Return base64-string for screenshot.
License
MIT