2017 © Pedro Peláez
 

library browserstack

Client library for Browserstack Screenshot API

image

alexschwarz89/browserstack

Client library for Browserstack Screenshot API

  • Thursday, December 8, 2016
  • by alexschwarz89
  • Repository
  • 2 Watchers
  • 6 Stars
  • 215 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Browserstack

Latest Stable Version Total Downloads, (*1)

An easy-to-use PHP library for the Browserstack Screenshots API. Working examples included., (*2)

Install

Install via composer:, (*3)

{
    "require": {
        "alexschwarz89/browserstack": "0.0.2"
    }
}

Run composer install., (*4)

Example usage

Get an array of available browsers

use Alexschwarz89\Browserstack\Screenshots\Api;
$api         = new Api('username', 'password');
$browserList = $api->getBrowsers();

Generate a screenshot

use Alexschwarz89\Browserstack\Screenshots\Api;
use Alexschwarz89\Browserstack\Screenshots\Request;
$api        = new Api('account', 'password');
$request    = Request::buildRequest('http://www.example.org', 'Windows', '8.1', 'ie', '11.0');
$response   = $api->sendRequest( $request );
$jobId      = $response->jobId;

Query information about the request

$status = $api->getJobStatus('browserstack_jobid');
if ($status->isFinished()) {
  foreach ($status->finishedScreenshots as $screenshot) {
    print $screenshot->image_url ."\n";
  }
}

Bitdeli Badge, (*5)

The Versions

08/12 2016

dev-master

9999999-dev

Client library for Browserstack Screenshot API

  Sources   Download

The Requires

 

The Development Requires

browserstack screenshots

21/01 2015

0.0.2

0.0.2.0

Client library for Browserstack Screenshot API

  Sources   Download

The Requires

 

The Development Requires

browserstack screenshots

20/01 2015

0.0.1

0.0.1.0

Client library for Browserstack Screenshot API

  Sources   Download

The Requires

 

The Development Requires

browserstack screenshots