2017 © Pedro Peláez
 

library screeenly-client

PHP API Wrapper for screeenly.com

image

wnx/screeenly-client

PHP API Wrapper for screeenly.com

  • Friday, April 6, 2018
  • by stefanzweifel
  • Repository
  • 4 Watchers
  • 20 Stars
  • 14,383 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

ScreenlyClient

Build Status
Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

PHP Wrapper for the Screeenly API. You must have a Screeenly account to use this package., (*2)

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., (*3)

Installation

Install the package with composer:, (*4)

Guzzle v6:, (*5)

$ composer require "wnx/screeenly-client:~2.0"

Guzzle v5:, (*6)

$ composer require "wnx/screeenly-client:~1.0"

For Laravel 4 prjoects:, (*7)

$ composer require "wnx/screeenly-client:~0.3"

Usage

Laravel 5

Read more for Laravel 4 usage., (*8)

Add the following code to your providers array in app/conifg/app.php:, (*9)

...

'Wnx\ScreeenlyClient\ScreeenlyClientServiceProvider',

Publish the configration file and add your Screeenly API Key in config/screeenly_client.php., (*10)

php artisan vendor:publish --provider="Wnx\ScreeenlyClient\ScreeenlyClientServiceProvider"

Now you have access to the Screenshot Facade. Use it like the example below:, (*11)

$path       = public_path('/');
$screenshot = Screenshot::capture('http://google.com');
$localPath  = $screenshot->store($path, 'screenshot.jpg');

Non-Laravel Usage

use Wnx\ScreeenlyClient\Screenshot;
...

$screenshot = new Screenshot($key);
$screenshot->capture('http://google.com');
$localPath = $screenshot->store('path/to/image/store/', 'screenshot.jpg');

Available Methods

$screeenshot->capture($url);

Create Screenshot of given URL., (*12)

$screeenshot->store($path, $filename);

Store screenshot on local disk. Returns path to image., (*13)

$screeenshot->setHeight(integer);

Optional. Set screenshot height., (*14)

$screeenshot->setWidth(integer);

Optional. Set screenshot width., (*15)

$screeenshot->getPath();

Return path to temporary image on Screeenly server., (*16)

$screeenshot->getBase64();

Return base64-string for screenshot., (*17)

License

MIT, (*18)

The Versions

06/04 2018

dev-master

9999999-dev https://github.com/stefanzweifel/ScreeenlyClient

PHP API Wrapper for screeenly.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api screenshot screeenly

06/04 2018

v2.0.2

2.0.2.0 https://github.com/stefanzweifel/ScreeenlyClient

PHP API Wrapper for screeenly.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api screenshot screeenly

29/07 2015

v2.0.1

2.0.1.0 https://github.com/stefanzweifel/ScreeenlyClient

PHP API Wrapper for screeenly.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api screenshot screeenly

29/07 2015

v2.0.0

2.0.0.0 https://github.com/stefanzweifel/ScreeenlyClient

PHP API Wrapper for screeenly.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api screenshot screeenly

13/02 2015

v1.0.0

1.0.0.0 https://github.com/stefanzweifel/ScreeenlyClient

PHP API Wrapper for screeenly.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api screenshot screeenly

24/01 2015

v0.3.0

0.3.0.0 https://github.com/stefanzweifel/ScreeenlyClient

PHP API Wrapper for screeenly.com

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api screenshot screeenly

15/01 2015

v0.2.0

0.2.0.0

PHP API Wrapper for screeenly.com

  Sources   Download

The Requires

 

13/01 2015

v0.1.0

0.1.0.0

PHP API Wrapper for screeenly.com

  Sources   Download

The Requires