PHPackages                             testingbot/testingbot-php - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. testingbot/testingbot-php

ActiveTestingbot-php[Testing &amp; Quality](/categories/testing)

testingbot/testingbot-php
=========================

PHP version of the TestingBot API

1.0.3(5y ago)325.3k[1 PRs](https://github.com/testingbot/testingbot-php/pulls)1Apache-2.0PHPPHP &gt;=5.4.0

Since Aug 26Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (6)Used By (1)

Testingbot-PHP
==============

[](#testingbot-php)

This is the TestingBot PHP client which makes it easy to interact with the [TestingBot API](https://testingbot.com/support/api)

License
-------

[](#license)

Testingbot-PHP is available under the Apache 2 license. See `LICENSE.APACHE2` for more details.

Usage
-----

[](#usage)

TestingBot-PHP is distributed with Composer, which means you can include it in your project:

`composer require testingbot/testingbot-php`

or edit the `composer.json` file and add:

```
{
    "require": {
        "testingbot/testingbot-php": ">=1.0.0"
    }
}
```

To start, create a new `TestingBot\TestingBotAPI` object and pass in the key and secret you obtained from [TestingBot](https://testingbot.com/members/user/edit)

```
$api = new TestingBot\TestingBotAPI($key, $secret);
```

Now you can use the various methods we've made available to interact with the API:

### getBrowsers

[](#getbrowsers)

Gets a list of browsers you can test on

```
$api->getBrowsers();
```

### getDevices

[](#getdevices)

Gets a list of devices you can test on

```
$api->getDevices();
```

### getAvailableDevices

[](#getavailabledevices)

Gets a list of available devices you can test on

```
$api->getAvailableDevices();
```

### getDevice

[](#getdevice)

Gets information for a specific device

```
$api->getDevice($deviceID);
```

### getUserInfo

[](#getuserinfo)

Gets your user information

```
$api->getUserInfo();
```

### updateUserInfo

[](#updateuserinfo)

Updates your user information

```
$api->updateUserInfo(array('first_name' => 'test'));
```

### updateJob

[](#updatejob)

Updates a Test with Meta-data to display on TestingBot. For example, you can specify the test name and whether the test succeeded or failed:

```
$api->updateJob($webdriverSessionID, array('name' => 'mytest', 'success' => true));
```

### getJob

[](#getjob)

Gets meta information for a job (test) by passing in the WebDriver sessionID of the test you ran on TestingBot:

```
$api->getJob($webdriverSessionID);
```

### getJobs

[](#getjobs)

Gets a list of previous jobs/tests that you ran on TestingBot, order by last run:

```
$api->getJobs(0, 10); // last 10 tests
```

### deleteJob

[](#deletejob)

Deletes a test from TestingBot

```
$api->deleteJob($webdriverSessionID);
```

### stopJob

[](#stopjob)

Stops a running test on TestingBot

```
$api->stopJob($webdriverSessionID);
```

### getBuilds

[](#getbuilds)

Gets a list of builds that you ran on TestingBot, order by last run:

```
$api->getBuilds(0, 10); // last 10 builds
```

### getBuild

[](#getbuild)

Gets a build from TestingBot (a group of tests)

```
$api->getBuild($buildIdentifier);
```

### deleteBuild

[](#deletebuild)

Deletes a build from TestingBot.

```
$api->deleteBuild($buildIdentifier);
```

### getTunnels

[](#gettunnels)

Gets a list of active tunnels for your account.

```
$api->getTunnels();
```

### deleteTunnel

[](#deletetunnel)

Deletes an active tunnel.

```
$api->deleteTunnel($tunnelID);
```

### uploadLocalFileToStorage

[](#uploadlocalfiletostorage)

Uploads a local file (.apk, .ipa, .zip) to TestingBot Storage.

```
$api->uploadLocalFileToStorage($pathToLocalFile);
```

### uploadRemoteFileToStorage

[](#uploadremotefiletostorage)

Uploads a remote file (.apk, .ipa, .zip) to TestingBot Storage.

```
$api->uploadRemoteFileToStorage($urlToRemoteFile);
```

### getStorageFile

[](#getstoragefile)

Gets meta data from a file previously uploaded to TestingBot Storage. AppUrl is the `tb://` url you previously received from the TestingBot API.

```
$api->getStorageFile($appUrl);
```

### getStorageFiles

[](#getstoragefiles)

Gets meta data from all file previously uploaded to TestingBot Storage.

```
$api->getStorageFiles();
```

### deleteStorageFile

[](#deletestoragefile)

Deletes a file previously uploaded to TestingBot Storage. AppUrl is the `tb://` url you previously received from the TestingBot API.

```
$api->deleteStorageFile($appUrl);
```

### getAuthenticationHash

[](#getauthenticationhash)

Calculates the hash necessary to share tests with other people

```
$api->getAuthenticationHash($identifier);
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% 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 ~571 days

Total

4

Last Release

1840d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/945169?v=4)[TestingBot](/maintainers/testingbot)[@testingbot](https://github.com/testingbot)

---

Top Contributors

[![delabiejochen](https://avatars.githubusercontent.com/u/42799634?v=4)](https://github.com/delabiejochen "delabiejochen (13 commits)")[![jochen-testingbot](https://avatars.githubusercontent.com/u/137506783?v=4)](https://github.com/jochen-testingbot "jochen-testingbot (3 commits)")

---

Tags

api-clientphp-webdrivertestingbotwebdrivertestingphpunitapiseleniumappiumtestingbot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/testingbot-testingbot-php/health.svg)

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

###  Alternatives

[sauce/sausage

PHP version of the Sauce Labs API

70807.6k3](/packages/sauce-sausage)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

59610.9M150](/packages/phpunit-phpunit-selenium)[appium/php-client

PHP client for Selenium 3.0/Appium 1.0

71674.0k4](/packages/appium-php-client)[fr3d/swagger-assertions

Test your API requests and responses against your swagger definition

138850.9k5](/packages/fr3d-swagger-assertions)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222163.1k1](/packages/lmc-steward)[aik099/phpunit-mink

Library for using Mink in PHPUnit tests. Supports session sharing between tests in a test case.

72136.2k1](/packages/aik099-phpunit-mink)

PHPackages © 2026

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