filippo-toso/browser-stack

BrowserStack API client

v1.0.2 2017-08-21 21:47 UTC

This package is auto-updated.

Last update: 2024-03-29 02:44:59 UTC


README

A simple client for browserstack.com API.

Requirements

  • PHP 5.6+
  • guzzlehttp/guzzle 6.2+

Installing

Use Composer to install it:

composer require filippo-toso/browser-stack

Using It

use FilippoToso\BrowserStack\Client as BrowserStack;

$client = new BrowserStack('username', 'access_key');

// Get list of available OS and browsers
$browsers = $client->getBrowsers();

// Request the generation of a screenshot
$url = 'https://efes.to/';
$job = $client->generateScreenshots($url, $browsers);

// Get the list of screenshots and their states
$result = $client->getJob($job['job_id']);