filippo-toso / browser-stack
BrowserStack API client
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/filippo-toso/browser-stack
Requires
- php: ^5.6 || ^7.0
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2025-09-29 02:20:56 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']);