{"id":21891184,"url":"https://github.com/kamalkhan/web-driver","last_synced_at":"2026-04-11T22:03:29.619Z","repository":{"id":62493943,"uuid":"264717748","full_name":"kamalkhan/web-driver","owner":"kamalkhan","description":"A convenience wrapper around facebook's php-webdriver","archived":false,"fork":false,"pushed_at":"2021-06-07T14:29:29.000Z","size":16799,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T10:55:48.657Z","etag":null,"topics":["chrome","driver","phantomjs","php-webdriver","process","testing","web"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamalkhan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-17T17:13:01.000Z","updated_at":"2021-06-07T14:27:02.000Z","dependencies_parsed_at":"2022-11-02T11:30:43.104Z","dependency_job_id":null,"html_url":"https://github.com/kamalkhan/web-driver","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalkhan%2Fweb-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalkhan%2Fweb-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalkhan%2Fweb-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamalkhan%2Fweb-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamalkhan","download_url":"https://codeload.github.com/kamalkhan/web-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898458,"owners_count":20528341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","driver","phantomjs","php-webdriver","process","testing","web"],"created_at":"2024-11-28T12:21:17.564Z","updated_at":"2026-04-11T22:03:29.553Z","avatar_url":"https://github.com/kamalkhan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Driver [![Build Status][icon-status]][link-status] [![Total Downloads][icon-downloads]][link-downloads] [![MIT License][icon-license]](LICENSE.md)\n\nRun and/or control a web driver programmatically.\n\n- [Requirements](#requirements)\n- [Install](#install)\n  - [Install chrome driver](#install-chrome-driver)\n  - [Install phantomjs driver](#install-phantomjs-driver)\n- [Usage](#usage)\n  - [Chrome Web Driver](#chrome-web-driver)\n  - [Phantomjs Web Driver](#phantomjs-web-driver)\n- [API](#api)\n  - [Example](#example)\n- [Advanced](#advanced)\n  - [TODO](#todo)\n- [Changelog](#changelog)\n- [Testing](#testing)\n- [Contributing](#contributing)\n- [Security](#security)\n- [Credits](#credits)\n- [License](#license)\n\n## Requirements\n\n- PHP \u003e= 5.6.4\n\n## Install\n\nYou may install this package using [composer][link-composer].\n\n```shell\n$ composer require bhittani/web-driver --prefer-dist\n```\n\n### Install chrome driver\n\n```shell\n$ vendor/bin/install-chrome-driver\n```\n\n### Install phantomjs driver\n\n```shell\n$ vendor/bin/install-phantomjs-driver\n```\n\n## Usage\n\nThis package conveniently wraps the [Facebook's PHP Web Driver](https://github.com/php-webdriver/php-webdriver) and by default offers drivers for chrome and phantomjs.\n\n### Chrome Web Driver\n\nFirst ensure you have installed the [chrome driver](#install-chrome-driver).\n\n```php\n\u003c?php\n\nuse Bhittani\\WebDriver\\Chrome;\n\n$driver = Chrome::make();\n```\n\n### Phantomjs Web Driver\n\nFirst ensure you have installed the [phantomjs driver](#install-phantomjs-driver).\n\n```php\n\u003c?php\n\nuse Bhittani\\WebDriver\\Phantomjs;\n\n$driver = Phantomjs::make();\n```\n\n## API\n\nAll driver instances extend `Facebook\\WebDriver\\Remote\\RemoteWebDriver`, hence, the same API applies.\n\n### Example\n\n```php\n\u003c?php\n\n$googleDotCom = $driver-\u003eget('https://google.com');\n\n$googleDotCom-\u003egetTitle(); // 'Google'\n```\n\n## Advanced\n\n### TODO\n\n- [ ] Document the usage of process.\n- [ ] Document the usage of custom ports.\n- [ ] Document the usage of payload (chrome)\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed.\n\n## Testing\n\n```shell\n$ git clone https://github.com/kamalkhan/web-driver\n\n$ cd web-driver\n\n$ composer install\n\n$ composer install-drivers\n\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email `shout@bhittani.com` instead of using the issue tracker.\n\n## Credits\n\n- [Kamal Khan](http://bhittani.com)\n- [All Contributors](https://github.com/kamalkhan/web-driver/contributors)\n\n## License\n\nThe MIT License (MIT). Please see the [License File](LICENSE.md) for more information.\n\n\u003c!--Status--\u003e\n\n[icon-status]: https://img.shields.io/github/workflow/status/kamalkhan/web-driver/main?style=flat-square\n\n[link-status]: https://github.com/kamalkhan/web-driver\n\n\u003c!--Downloads--\u003e\n\n[icon-downloads]: https://img.shields.io/packagist/dt/bhittani/web-driver.svg?style=flat-square\n\n[link-downloads]: https://packagist.org/packages/bhittani/web-driver\n\n\u003c!--License--\u003e\n\n[icon-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n\n\u003c!--composer--\u003e\n\n[link-composer]: https://getcomposer.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamalkhan%2Fweb-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamalkhan%2Fweb-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamalkhan%2Fweb-driver/lists"}