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

ActiveLibrary

lireincore/webdriver
====================

A PHP client for WebDriver

1.3.1(9y ago)015Apache-2.0PHPPHP ^5.5 || ~7.0

Since Sep 10Pushed 9y agoCompare

[ Source](https://github.com/lireincore/webdriver)[ Packagist](https://packagist.org/packages/lireincore/webdriver)[ Docs](https://github.com/lireincore/webdriver)[ RSS](/packages/lireincore-webdriver/feed)WikiDiscussions community Synced 2mo ago

READMEChangelogDependencies (6)Versions (22)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/df2e1fa9c40cbdaf7287ca1024f4a1ef69fbbcb5abf42ae8ea6718532fcca9de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66616365626f6f6b2f7765626472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/facebook/webdriver)[![Total Downloads](https://camo.githubusercontent.com/28cf482358b8d681b22784404fb5a720d63f1e282d976618f440513b840d4910/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66616365626f6f6b2f7765626472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/facebook/webdriver)[![License](https://camo.githubusercontent.com/e5c1c64de7bf591b88306db6170e758732d17eb30d284cd53d3cd0679d291688/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66616365626f6f6b2f7765626472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/facebook/webdriver)

Description
-----------

[](#description)

Php-webdriver library is PHP language binding for Selenium WebDriver, which allows you to control web browsers from PHP.

This library is compatible with Selenium server version 2.x and 3.x. It implements the [JsonWireProtocol](https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol), which is currently supported by the Selenium server and will also implement the [W3C WebDriver](https://w3c.github.io/webdriver/webdriver-spec.html) specification in the future.

The concepts of this library are very similar to the "official" Java, .NET, Python and Ruby bindings from the [Selenium project](https://github.com/SeleniumHQ/selenium/).

**This is new version of PHP client, rewritten from scratch starting 2013.**Using the old version? Check out [Adam Goucher's fork](https://github.com/Element-34/php-webdriver) of it.

Looking for API documentation of php-webdriver? See [https://facebook.github.io/php-webdriver/](https://facebook.github.io/php-webdriver/latest/)

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

Installation
------------

[](#installation)

Installation is possible using [Composer](https://getcomposer.org/).

If you don't already use Composer, you can download the `composer.phar` binary:

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

```

Then install the library:

```
php composer.phar require facebook/webdriver

```

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->setCapability('acceptSslCerts', false);
$driver = RemoteWebDriver::create($host, $desired_capabilities);
```

- See  for more details.
- Above snippets are not intended to be a working example by simply copy pasting. See [example.php](example.php) for working example.

Changelog
---------

[](#changelog)

For latest changes see [CHANGELOG.md](CHANGELOG.md) file.

More information
----------------

[](#more-information)

Some how-tos are provided right here in [our GitHub wiki](https://github.com/facebook/php-webdriver/wiki).

You may also want to check out the Selenium [docs](http://docs.seleniumhq.org/docs/) and [wiki](https://github.com/SeleniumHQ/selenium/wiki).

Testing framework integration
-----------------------------

[](#testing-framework-integration)

To take advantage of automatized testing you will most probably want to integrate php-webdriver to your testing framework. There are some project already providing this:

- [Steward](https://github.com/lmc-eu/steward) integrates php-webdriver directly to [PHPUnit](https://phpunit.de/), also providers parallelization.
- [Codeception](http://codeception.com) testing framework provides BDD-layer on top of php-webdriver in its [WebDriver module](http://codeception.com/docs/modules/WebDriver).
- You can also check out this [blogpost](http://codeception.com/11-12-2013/working-with-phpunit-and-selenium-webdriver.html) + [demo project](https://github.com/DavertMik/php-webdriver-demo), describing simple [PHPUnit](https://phpunit.de/) integration.

Support
-------

[](#support)

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

- **Via our Facebook Group** - If you have questions or are an active contributor consider joining our [facebook group](https://www.facebook.com/groups/phpwebdriver/) and contributing to the communal discussion and support.
- **Via StackOverflow** - You can also [ask a question](https://stackoverflow.com/questions/ask?tags=php+selenium-webdriver) or find many already answered question on StackOverflow.
- **Via GitHub** - Another option if you have a question (or bug report) is to [submit it here](https://github.com/facebook/php-webdriver/issues/new) as an new issue.

Contributing
------------

[](#contributing)

We love to have your help to make php-webdriver better. See [CONTRIBUTING.md](CONTRIBUTING.md) for more information about contributing and developing php-webdriver.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

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

Recently: every ~57 days

Total

20

Last Release

3404d ago

Major Versions

v0.6.0 → 1.0.02015-06-09

PHP version history (5 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

1.2.0PHP ^5.5 || ~7.0

### Community

Maintainers

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

---

Top Contributors

[![OndraM](https://avatars.githubusercontent.com/u/793041?v=4)](https://github.com/OndraM "OndraM (115 commits)")[![whhone](https://avatars.githubusercontent.com/u/1200104?v=4)](https://github.com/whhone "whhone (97 commits)")[![gfosco](https://avatars.githubusercontent.com/u/406732?v=4)](https://github.com/gfosco "gfosco (42 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)")[![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)")[![gkralik](https://avatars.githubusercontent.com/u/4949303?v=4)](https://github.com/gkralik "gkralik (4 commits)")[![phelipealves](https://avatars.githubusercontent.com/u/2778150?v=4)](https://github.com/phelipealves "phelipealves (4 commits)")[![andrefortin](https://avatars.githubusercontent.com/u/26552025?v=4)](https://github.com/andrefortin "andrefortin (3 commits)")[![jonstjohn](https://avatars.githubusercontent.com/u/95620?v=4)](https://github.com/jonstjohn "jonstjohn (2 commits)")[![danielbeardsley](https://avatars.githubusercontent.com/u/26855?v=4)](https://github.com/danielbeardsley "danielbeardsley (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)")[![DGCarramona](https://avatars.githubusercontent.com/u/8184340?v=4)](https://github.com/DGCarramona "DGCarramona (2 commits)")[![dsereni](https://avatars.githubusercontent.com/u/1372821?v=4)](https://github.com/dsereni "dsereni (2 commits)")[![akshayminocha5](https://avatars.githubusercontent.com/u/1572208?v=4)](https://github.com/akshayminocha5 "akshayminocha5 (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)")

---

Tags

seleniumwebdriver

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[php-webdriver/webdriver

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

5.2k90.0M127](/packages/php-webdriver-webdriver)[symfony/panther

A browser testing and web scraping library for PHP and Symfony.

3.1k14.7M96](/packages/symfony-panther)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[behat/mink-selenium2-driver

Selenium2 (WebDriver) driver for Mink framework

51159.1M666](/packages/behat-mink-selenium2-driver)[instaclick/php-webdriver

PHP WebDriver for Selenium 2

43761.8M22](/packages/instaclick-php-webdriver)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

222163.1k1](/packages/lmc-steward)

PHPackages © 2026

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