{"id":21944895,"url":"https://github.com/browserstack/phpunit-browserstack","last_synced_at":"2025-04-22T21:07:04.295Z","repository":{"id":66098335,"uuid":"52861045","full_name":"browserstack/phpunit-browserstack","owner":"browserstack","description":"Selenium examples for PHPUnit and BrowserStack Automate","archived":false,"fork":false,"pushed_at":"2025-03-20T02:27:57.000Z","size":57,"stargazers_count":6,"open_issues_count":4,"forks_count":17,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-22T21:06:57.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.browserstack.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2016-03-01T08:33:50.000Z","updated_at":"2023-04-11T15:18:38.000Z","dependencies_parsed_at":"2023-04-13T05:43:01.404Z","dependency_job_id":null,"html_url":"https://github.com/browserstack/phpunit-browserstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fphpunit-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fphpunit-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fphpunit-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fphpunit-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/phpunit-browserstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324688,"owners_count":21411946,"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":[],"created_at":"2024-11-29T04:17:21.691Z","updated_at":"2025-04-22T21:07:04.274Z","avatar_url":"https://github.com/browserstack.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpunit-browserstack\n\n[PHPUnit](https://github.com/sebastianbergmann/phpunit) Integration with BrowserStack\n\n![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\n\n## Prerequisites\n\n1. Make sure that you have **PHP** installed on your system. You can download and install **PHP** using following commands in the terminal:\n\n  * **MacOS:**\n    ```bash\n    /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n    brew install php\n    ```\n  * **Windows:** \n    ```bash\n    sudo apt-get install curl libcurl3 libcurl3-dev php\n    ```\n    **Note:** For **Windows**, you can download **PHP** from [here](http://windows.php.net/download/). Also, refer to this [documentation](http://php.net/manual/en/install.windows.php) for ensuring the accessibility of PHP through the Command Prompt.\n\n2. Download **composer** in the project directory ([Linux/MacOS](https://getcomposer.org/download/), [Windows](https://getcomposer.org/doc/00-intro.md#installation-windows)).\n\n    **Note:** To use the **composer** command directly, it either should have been downloaded in the project directory or should be accessible globally which can be done by the command below:\n    ```bash\n    mv composer.phar /usr/local/bin/composer\n    ```\n\n## Setup\n* Clone the repo\n* Install dependencies using:  `composer install`\n* Update `test.conf.json` file inside the `config/` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)\n\n## Running your tests\n* To run tests, run: `composer test`\n* To run local tests, run: `composer local`\n\n Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)\n\n## Notes\n* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)\n* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/php#setting-os-and-browser)\n* You can export the environment variables for the Username and Access Key of your BrowserStack account\n  \n  ```\n  export BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e \u0026\u0026\n  export BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n  \n## Additional Resources\n* [Documentation for writing Automate test scripts in PHP](https://www.browserstack.com/automate/php)\n* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)\n* [Browsers \u0026 mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)\n* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fphpunit-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fphpunit-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fphpunit-browserstack/lists"}