PHPackages                             creasi/dusk-browserstack - 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. creasi/dusk-browserstack

ActiveLibrary[Testing &amp; Quality](/categories/testing)

creasi/dusk-browserstack
========================

Additional BrowserSstack Supports for Laravel Dusk

v0.3.8(1y ago)211.5k[8 PRs](https://github.com/creasico/laravel-dusk-browserstack/pulls)1MITPHPPHP ^8.1CI failing

Since Oct 13Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/creasico/laravel-dusk-browserstack)[ Packagist](https://packagist.org/packages/creasi/dusk-browserstack)[ GitHub Sponsors](https://github.com/sponsors/creasico)[ RSS](/packages/creasi-dusk-browserstack/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (30)Used By (1)

[![Version](https://camo.githubusercontent.com/d11f55d099e58954bb4ead493ca0b4e0290762a7dc260b3480d1adb2be7665dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372656173692f6475736b2d62726f77736572737461636b3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/creasi/dusk-browserstack)[![License](https://camo.githubusercontent.com/dc96feabd0643a39dbd482fef06ced6bbdce37e94d20aeefc803d450e9e1e552/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6372656173692f6475736b2d62726f77736572737461636b3f7374796c653d666c61742d737175617265)](https://github.com/creasico/laravel-dusk-browserstack/blob/master/LICENSE)

Additional BrowserStack Local Supports for Laravel Dusk
=======================================================

[](#additional-browserstack-local-supports-for-laravel-dusk)

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

[](#installation)

Use [Composer](https://getcomposer.org/)

```
$ composer require creasi/dusk-browserstack --dev
```

Usage
-----

[](#usage)

1. Add `WithBrowserStack` to your existing `DuskTestCase`, like so

    ```
    use Laravel\Dusk\TestCase as BaseTestCase;
    use Creasi\DuskBrowserStack\WithBrowserStack;

    abstract class DuskTestCase extends BaseTestCase
    {
        use CreatesApplication;
        use WithBrowserStack;

        // ...
    }
    ```
2. Update `prepare` method

    ```
    use Creasi\DuskBrowserStack\BrowserStack;

    public static function prepare()
    {
        if (BrowserStack::hasAccessKey()) {
            static::startBrowserStackLocal();
            return;
        }

        if (! static::runningInSail()) {
            static::startChromeDriver();
        }
    }
    ```
3. Update `driver` method

    ```
    use Creasi\DuskBrowserStack\BrowserStack;

    protected function driver()
    {
        // ...

        $capabilities = DesiredCapabilities::chrome()
            ->setCapability(ChromeOptions::CAPABILITY, $options);

        return RemoteWebDriver::create(
            BrowserStack::getDriverURL(),
            $this->withBrowserStackCapabilities($capabilities)
        );
    }
    ```
4. Last one, don't forget to update your `.env` file

    ```
    BROWSERSTACK_USERNAME=''
    BROWSERSTACK_ACCESS_KEY=''
    ```

License
-------

[](#license)

This library is open-sourced software licensed under [MIT license](LICENSE).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance67

Regular maintenance activity

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.1% 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 ~44 days

Recently: every ~70 days

Total

19

Last Release

507d ago

PHP version history (2 changes)0.0.1PHP ^8.0

v0.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/16384dbbd6cd66f33f13f5bf2dc7f26125049762c7414eb0e755c630375240ba?d=identicon)[feryardiant](/maintainers/feryardiant)

---

Top Contributors

[![feryardiant](https://avatars.githubusercontent.com/u/508665?v=4)](https://github.com/feryardiant "feryardiant (162 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (67 commits)")[![fihriaziz](https://avatars.githubusercontent.com/u/11206650?v=4)](https://github.com/fihriaziz "fihriaziz (5 commits)")[![creasi](https://avatars.githubusercontent.com/u/11495172?v=4)](https://github.com/creasi "creasi (4 commits)")

---

Tags

browserstacklaravel-dusklaravel-packagelaravelpackageBrowserStackdusk

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/creasi-dusk-browserstack/health.svg)

```
[![Health](https://phpackages.com/badges/creasi-dusk-browserstack/health.svg)](https://phpackages.com/packages/creasi-dusk-browserstack)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[derekmd/laravel-dusk-firefox

Run Laravel Dusk tests in a Firefox browser

4883.4k1](/packages/derekmd-laravel-dusk-firefox)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

1484.6k3](/packages/calebdw-larastan)

PHPackages © 2026

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