PHPackages                             zgetro/laravel-dusk-chromedriver - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zgetro/laravel-dusk-chromedriver

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zgetro/laravel-dusk-chromedriver
================================

A Laravel Artisan command to download matching ChromeDriver binaries for Windows, Linux, Mac, with WSL host detection support.

v1.1.1(1y ago)213MITPHPPHP ^7.4|^8.0CI passing

Since May 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zgetro/laravel-dusk-chromedriver)[ Packagist](https://packagist.org/packages/zgetro/laravel-dusk-chromedriver)[ RSS](/packages/zgetro-laravel-dusk-chromedriver/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

 🚗 Laravel ChromeDriver Downloader
===================================

[](#---laravel-chromedriver-downloader)

 *A Laravel Artisan command that auto-magically detects your Chrome version, downloads the right **ChromeDriver** for Windows 🪟, Linux 🐧, and Mac 🍏 — with exclusive WSL support!*

 🧠 Smart · 🤖 Automated · ⚡ Fast · 🧩 Cross-Platform · 💻 WSL-Aware

---

 [ ![Latest Stable Version](https://camo.githubusercontent.com/65e4892682d41c46aaa2be5e540f829e71eb80ad865d5cbef43bcb9a508995fa/68747470733a2f2f706f7365722e707567782e6f72672f7a676574726f2f6c61726176656c2d6475736b2d6368726f6d656472697665722f76) ](https://packagist.org/packages/zgetro/laravel-dusk-chromedriver) [ ![Total Downloads](https://camo.githubusercontent.com/8d8e83cd4604496f3d9a46db0accff8fdb720af375d8e53c84e6e8d9e7d411cd/68747470733a2f2f706f7365722e707567782e6f72672f7a676574726f2f6c61726176656c2d6475736b2d6368726f6d656472697665722f646f776e6c6f616473) ](https://packagist.org/packages/zgetro/laravel-dusk-chromedriver) [ ![Latest Unstable Version](https://camo.githubusercontent.com/fa299ac3e29bcaa348278b8a2618307cc3bdbc5b3b24df836f29d416099ebffe/68747470733a2f2f706f7365722e707567782e6f72672f7a676574726f2f6c61726176656c2d6475736b2d6368726f6d656472697665722f762f756e737461626c65) ](https://packagist.org/packages/zgetro/laravel-dusk-chromedriver) [ ![License](https://camo.githubusercontent.com/931bc036fa60cf60674ae0a9d140417cd3a85e2dca263925576d39e7a3bcfeaa/68747470733a2f2f706f7365722e707567782e6f72672f7a676574726f2f6c61726176656c2d6475736b2d6368726f6d656472697665722f6c6963656e7365) ](https://packagist.org/packages/zgetro/laravel-dusk-chromedriver) [ ![PHP Version Require](https://camo.githubusercontent.com/ba23baa8da74d983c477f0059d4675841bcdeec53c3b1b9798e906cff20a0b68/68747470733a2f2f706f7365722e707567782e6f72672f7a676574726f2f6c61726176656c2d6475736b2d6368726f6d656472697665722f726571756972652f706870) ](https://packagist.org/packages/zgetro/laravel-dusk-chromedriver)

### 🧩 Features

[](#-features)

- 🎯 Detects your Chrome version precisely
- 💻 Supports downloading drivers for:
    - Windows (`chromedriver-win64`)
    - Linux (`chromedriver-linux64`)
    - macOS (`chromedriver-mac-arm64` / `mac-x64`)
- 🐧 **WSL Smart Detection** – detects Chrome version from Windows host
- ⚙️ Stores drivers in `.vendor/laravel/dusk/bin/`
- 🔀 Supports `--all` flag to download drivers for all OSes
- ✅ Laravel 6–11 compatible
- 🧪 PHPUnit support for testing the command

---

### 🚀 Installation

[](#-installation)

```
composer require zgetro/laravel-dusk-chromedriver --dev
```

### 🛠️ Usage

[](#️-usage)

```
php artisan dusk:download-chromedriver
```

#### By default, this will:

[](#by-default-this-will)

- Detect the local Chrome version
- Download the matching ChromeDriver for your OS
- Save it as .vendor/laravel/dusk/bin/chromedriver-\[os\]

### 🧬 Download All Drivers

[](#-download-all-drivers)

```
php artisan dusk:download-chromedriver --all
```

This downloads all supported platform drivers — ideal for testing or CI.

### ⚙️ Environment Compatibility

[](#️-environment-compatibility)

OSChrome Detection MethodLinux`google-chrome --version` / `chromium-browser`macOS`mdls` metadata or standard version queriesWindowsPowerShell: read `.exe` version**WSL****PowerShell bridge** to detect host Windows Chrome ✅### 📦 Output Directory

[](#-output-directory)

All drivers are stored under:

```
.vendor/laravel/dusk/bin/
```

With friendly names:

- chromedriver-win
- chromedriver-linux
- chromedriver-mac

### 🧪 Testing

[](#-testing)

```
composer test
```

Supports phpunit via Orchestra Testbench.

### 🧙 Behind the Scenes

[](#-behind-the-scenes)

> Your Artisan command is your wand. This package just makes it magical.

The package:

- etches your Chrome version using OS-specific logic
- Queries official Chrome for Testing URLs
- Extracts &amp; renames the ChromeDriver zip content
- Makes it executable where needed

### 🧰 Requirements

[](#-requirements)

- PHP 7.4 or newer
- Laravel 6.x to 11.x
- Internet access (to download drivers)

### 🧾 License

[](#-license)

MIT © zgetro

### 💡 Contributing

[](#-contributing)

PRs welcome! Feel free to submit issues, add test coverage, or request new features.

 🐣 Fun FactDid you know the ChromeDriver you use every day is based on the WebDriver protocol – a W3C standard? You’re not just testing… you’re browsing the web like a boss. ######  --Thanks CHATGPT--

[](#---thanks-chatgpt---)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

409d ago

### Community

Maintainers

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

---

Top Contributors

[![zgetro](https://avatars.githubusercontent.com/u/4480849?v=4)](https://github.com/zgetro "zgetro (12 commits)")

---

Tags

dusk-chromdriverslaravelwslhost-support

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zgetro-laravel-dusk-chromedriver/health.svg)

```
[![Health](https://phpackages.com/badges/zgetro-laravel-dusk-chromedriver/health.svg)](https://phpackages.com/packages/zgetro-laravel-dusk-chromedriver)
```

###  Alternatives

[symfony/deprecation-contracts

A generic function and convention to trigger deprecation notices

2.1k884.9M725](/packages/symfony-deprecation-contracts)[thenextweb/passgenerator

A Laravel package to create Apple Wallet (old Passbook) compatible tickets.

302478.1k](/packages/thenextweb-passgenerator)[coolsam/flatpickr

Flatpickr input for Filamentphp

101262.5k2](/packages/coolsam-flatpickr)

PHPackages © 2026

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