PHPackages                             alexschwarz89/browserstack - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. alexschwarz89/browserstack

ActiveLibrary[API Development](/categories/api)

alexschwarz89/browserstack
==========================

Client library for Browserstack Screenshot API

0.0.2(11y ago)87.3k↓11.1%2PHPPHP &gt;=5.3.3

Since Jan 20Pushed 9y ago3 watchersCompare

[ Source](https://github.com/alexschwarz89/browserstack)[ Packagist](https://packagist.org/packages/alexschwarz89/browserstack)[ RSS](/packages/alexschwarz89-browserstack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Browserstack
============

[](#browserstack)

[![Latest Stable Version](https://camo.githubusercontent.com/44a39f467cbfd6a461564be2e916ee845db3918860e742b03afce725b946cfd4/68747470733a2f2f706f7365722e707567782e6f72672f616c65787363687761727a38392f62726f77736572737461636b2f762f737461626c65)](https://packagist.org/packages/alexschwarz89/browserstack) [![Total Downloads](https://camo.githubusercontent.com/ad9dcf469d23d45068ac5705fe8b53ce7eb9b56a924aca933c77770f001beb07/68747470733a2f2f706f7365722e707567782e6f72672f616c65787363687761727a38392f62726f77736572737461636b2f646f776e6c6f616473)](https://packagist.org/packages/alexschwarz89/browserstack)

An easy-to-use PHP library for the Browserstack Screenshots API. Working examples included.

Install
-------

[](#install)

Install via [composer](https://getcomposer.org):

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

Run `composer install`.

Example usage
-------------

[](#example-usage)

#### Get an array of available browsers

[](#get-an-array-of-available-browsers)

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

#### Generate a screenshot

[](#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

[](#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](https://camo.githubusercontent.com/42cbe17dba18f6edaa1b65c60c8d48b01b175aa1323939a1459c0959f5a5008a/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f616c65787363687761727a38392f62726f77736572737461636b2f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e71603707372f4c65e68a640c1c15ef767ecf10c5ea6e597d2d2d403f691595?d=identicon)[alexschwarz89](/maintainers/alexschwarz89)

---

Top Contributors

[![alexschwarz89](https://avatars.githubusercontent.com/u/7203493?v=4)](https://github.com/alexschwarz89 "alexschwarz89 (18 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

browserstackbrowserstack-screenshots-apiphpphp-libraryscreenshotsscreenshotsBrowserStack

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexschwarz89-browserstack/health.svg)

```
[![Health](https://phpackages.com/badges/alexschwarz89-browserstack/health.svg)](https://phpackages.com/packages/alexschwarz89-browserstack)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[lstrojny/fxmlrpc

Fast and tiny XML/RPC client with bridges for various HTTP clients

1425.4M30](/packages/lstrojny-fxmlrpc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
