PHPackages                             sonardesign/webdriver - 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. sonardesign/webdriver

ActiveLibrary

sonardesign/webdriver
=====================

A php client for WebDriver

1.0.1(10y ago)026Apache-2.0PHPPHP &gt;=5.3.19

Since Sep 10Pushed 10y ago3 watchersCompare

[ Source](https://github.com/SonarDesignInc/php-webdriver)[ Packagist](https://packagist.org/packages/sonardesign/webdriver)[ Docs](https://github.com/facebook/php-webdriver)[ RSS](/packages/sonardesign-webdriver/feed)WikiDiscussions community Synced 1mo ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

php-webdriver -- WebDriver bindings for PHP
===========================================

[](#php-webdriver----webdriver-bindings-for-php)

DESCRIPTION
-----------

[](#description)

This WebDriver client aims to be as close as possible to bindings in other languages. The concepts are very similar to the Java, .NET, Python and Ruby bindings for WebDriver.

Looking for documentation about php-webdriver? See

The PHP client was rewritten from scratch. Using the old version? Check out Adam Goucher's fork of it at

Any complaint, question, idea? You can post it on the user group .

GETTING THE CODE
----------------

[](#getting-the-code)

### Github

[](#github)

```
git clone git@github.com:facebook/php-webdriver.git

```

### Packagist

[](#packagist)

Add the dependency.

```
{
  "require": {
    "facebook/webdriver": "~1.0"
  }
}

```

Download the composer.phar

```
curl -sS https://getcomposer.org/installer | php

```

Install the library.

```
php composer.phar install

```

GETTING STARTED
---------------

[](#getting-started)

- All you need as the server for this client is the selenium-server-standalone-#.jar file provided here:
- Download and run that file, replacing # with the current server version.

    ```
    java -jar selenium-server-standalone-#.jar

    ```
- Then when you create a session, be sure to pass the url to where your server is running.

    ```
    // This would be the url of the host running the server-standalone.jar
    $host = 'http://localhost:4444/wd/hub'; // this is the default

    ```
- Launch Firefox

    ```
    $driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());

    ```
- Launch Chrome

    ```
    $driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());

    ```
- You can also customize the desired capabilities.

    ```
    $desired_capabilities = DesiredCapabilities::firefox();
    $desired_capabilities->setJavascriptEnabled(false);
    RemoteWebDriver::create($host, $desired_capabilities);

    ```
- See  for more details.

RUN UNIT TESTS
--------------

[](#run-unit-tests)

To run unit tests simply run:

```
./vendor/bin/phpunit -c ./tests

```

Note: For the functional test suite, a running selenium server is required.

MORE INFORMATION
----------------

[](#more-information)

Check out the Selenium docs and wiki at  and

Learn how to integrate it with PHPUnit [Blogpost](http://codeception.com/11-12-2013/working-with-phpunit-and-selenium-webdriver.html) | [Demo Project](https://github.com/DavertMik/php-webdriver-demo)

SUPPORT
-------

[](#support)

We have a great community willing to try and help you!

Currently we offer support in two manners:

### Via our Facebook Group

[](#via-our-facebook-group)

If you have questions or are an active contributor consider joining our facebook group and contributing to the communal discussion and support

### Via Github

[](#via-github)

If you're reading this you've already found our Github repository. If you have a question, feel free to submit it as an issue and our staff will do their best to help you as soon as possible.

CONTRIBUTING
------------

[](#contributing)

We love to have your help to make php-webdriver better. Feel free to

- open an [issue](https://github.com/facebook/php-webdriver/issues) if you run into any problem.
- fork the project and submit [pull request](https://github.com/facebook/php-webdriver/pulls). Before the pull requests can be accepted, a [Contributors Licensing Agreement](http://developers.facebook.com/opensource/cla) must be signed.

When you are going to contribute, please keep in mind that this webdriver client aims to be as close as possible to other languages Java/Ruby/Python/C#. FYI, here is the overview of [the official Java API](http://selenium.googlecode.com/svn/trunk/docs/api/java/index.html?overview-summary.html)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~68 days

Total

11

Last Release

3953d ago

Major Versions

v0.6.0 → 1.0.02015-06-09

PHP version history (4 changes)v0.1PHP &gt;=5.3.0

v0.2PHP &gt;=5.4.0

v0.2.1PHP &gt;=5.4.20

v0.3PHP &gt;=5.3.19

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb1ba59c69fa7ce9a7d3e19bfb0037338c324294376a237c0d04a2143969c14c?d=identicon)[sonoranDesert](/maintainers/sonoranDesert)

---

Top Contributors

[![whhone](https://avatars.githubusercontent.com/u/1200104?v=4)](https://github.com/whhone "whhone (97 commits)")[![cbergau](https://avatars.githubusercontent.com/u/2446617?v=4)](https://github.com/cbergau "cbergau (21 commits)")[![v-slenter](https://avatars.githubusercontent.com/u/36268710?v=4)](https://github.com/v-slenter "v-slenter (15 commits)")[![gfosco](https://avatars.githubusercontent.com/u/406732?v=4)](https://github.com/gfosco "gfosco (12 commits)")[![OndraM](https://avatars.githubusercontent.com/u/793041?v=4)](https://github.com/OndraM "OndraM (10 commits)")[![ashleydw](https://avatars.githubusercontent.com/u/844437?v=4)](https://github.com/ashleydw "ashleydw (9 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (4 commits)")[![okrad](https://avatars.githubusercontent.com/u/939812?v=4)](https://github.com/okrad "okrad (4 commits)")[![sonoranDesert](https://avatars.githubusercontent.com/u/7966938?v=4)](https://github.com/sonoranDesert "sonoranDesert (4 commits)")[![akshayminocha5](https://avatars.githubusercontent.com/u/1572208?v=4)](https://github.com/akshayminocha5 "akshayminocha5 (2 commits)")[![DavertMik](https://avatars.githubusercontent.com/u/220264?v=4)](https://github.com/DavertMik "DavertMik (2 commits)")[![davidsickmiller](https://avatars.githubusercontent.com/u/172005?v=4)](https://github.com/davidsickmiller "davidsickmiller (2 commits)")[![dsereni](https://avatars.githubusercontent.com/u/1372821?v=4)](https://github.com/dsereni "dsereni (2 commits)")[![jonstjohn](https://avatars.githubusercontent.com/u/95620?v=4)](https://github.com/jonstjohn "jonstjohn (2 commits)")[![jsifalda](https://avatars.githubusercontent.com/u/1549390?v=4)](https://github.com/jsifalda "jsifalda (2 commits)")[![Mordred](https://avatars.githubusercontent.com/u/29232?v=4)](https://github.com/Mordred "Mordred (2 commits)")[![andreyvital](https://avatars.githubusercontent.com/u/967317?v=4)](https://github.com/andreyvital "andreyvital (1 commits)")[![jubishop](https://avatars.githubusercontent.com/u/13165?v=4)](https://github.com/jubishop "jubishop (1 commits)")[![kraigh](https://avatars.githubusercontent.com/u/1557338?v=4)](https://github.com/kraigh "kraigh (1 commits)")[![davidmintz](https://avatars.githubusercontent.com/u/9851159?v=4)](https://github.com/davidmintz "davidmintz (1 commits)")

---

Tags

phpfacebookseleniumwebdriver

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sonardesign-webdriver/health.svg)

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

###  Alternatives

[php-webdriver/webdriver

A PHP client for Selenium WebDriver. Previously facebook/webdriver.

5.2k90.0M127](/packages/php-webdriver-webdriver)[element-34/php-webdriver

Thin php client for webdriver

121233.8k1](/packages/element-34-php-webdriver)[edbizarro/laravel-facebook-ads

Facebook &amp; Instagram Ads for Laravel 5.6+

13629.5k](/packages/edbizarro-laravel-facebook-ads)[magium/magium

A browser/functional testing suite using Web Driver. Contains low-ish level functionality to quickly build browser/functional tests.

296.7k10](/packages/magium-magium)[manychat/manychat-api

ManyChat API PHP library

1716.1k](/packages/manychat-manychat-api)[magium/magento

Magento-based functionality for the Magium test library

275.4k2](/packages/magium-magento)

PHPackages © 2026

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