filippo-toso / browser-stack
BrowserStack API client
v1.0.2
2017-08-21 21:47 UTC
Requires
- php: ^5.6 || ^7.0
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2024-11-29 04:30:39 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']);