enm1989 / chromedriver
Composer distribution of Chromedriver. Installs the right executable for the host platform (linux64, linux-arm64, mac-x64, mac-arm64, win32/win64) at run time.
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 200.0.0
- 114.0
- 113.0
- 112.0
- 111.0
- 110.0
- 109.0
- 108.0
- 107.0
- 106.0
- 105.0
- 104.0
- 103.0
- 102.0
- 101.0
- 100.0
- 99.0
- 98.0
- 97.0
- 96.0
- 95.0
- 94.0
- 93.0
- 92.0
- 91.0
- 90.0
- 89.0
- 88.0
- 87.0
- 86.0
- 85.0
- 84.0
- 83.0
- 81.0
- 80.0
- 79.0
- 78.0
- 77.0
- 76.0
- 75.0
- 74.0
- 73.0
- 2.46
- 2.45
- 2.44
- 2.43
- 2.42
- 2.41
- 2.40
- 2.39
- 2.38
- 2.37
- 2.36
- 2.35
- 2.34
- 2.33
- 2.32
- 2.31
- 2.30
- 2.29
- 2.28
- 2.27
- 2.26
- 2.25
- 2.24
- 2.23
- dev-feature/auto-update-chromedriver
This package is auto-updated.
Last update: 2026-11-24 10:07:28 UTC
README
A Composer distribution of
Chromedriver by
Google. Adds a chromedriver executable to your Composer bin directory —
vendor/bin/chromedriver.
No binaries are bundled. Instead, the package ships a tiny bootstrap shim and an update script: the chromedriver for your host platform is automatically downloaded at run time (hash-verified against Google's published SHA-256 checksums) and installed for:
| Platform | Binary installed |
|---|---|
| linux64 | bin/chromedriver |
| linux-arm64 | bin/chromedriver |
| mac-x64 | bin/chromedriver |
| mac-arm64 | bin/chromedriver |
| win32/win64 | bin/chromedriver.exe |
Installation
composer require enm1989/chromedriver
That is all. By default the exact binary matching your OS and architecture is installed on first use.
Note: Composer only runs scripts defined in the root package of an install, so the package's
post-install-cmdhook does not run for you. The first call tovendor/bin/chromedriverself-installs the binary instead.
Usage
Call the driver like any other vendor/bin tool:
vendor/bin/chromedriver --version
Windows: point Selenium/Webdriver directly at the
.exe(vendor/enm1989/chromedriver/bin/chromedriver.exe) and runvendor/bin/update-chromedriveronce after installing. Thevendor/bin/chromedriverproxy additionally requiressh/bash (e.g. Git Bash) to bootstrap there.
vendor/bin/chromedriver --version
In Selenium/Webdriver scripts, point your driver service at that path, e.g. with php-webdriver:
$service = ChromeDriverService::createDefaultService(__DIR__ . '/vendor/bin/chromedriver'); $driver = ChromeDriver::start($service, $capabilities);
On the very first run the bootstrap shim downloads and installs the current stable chromedriver for your platform (a few seconds on a decent connection; later runs are plain pass-throughs).
Updating
Chromedriver follows Chrome releases roughly every four weeks. This package deliberately steps exactly one stable version per update run, so you can follow releases gradually instead of jumping straight to the newest build:
vendor/bin/update-chromedriver # Installed chromedriver: 148.0.7611.1 # Next stable version : 149.0.7612.1 (one-version-only step)
Each download is recorded in a manifest (bin/chromedriver-manifest.json
with version, platform, URL and SHA-256 hashes). A later mismatch of the
recorded hash aborts the update, so corrupted or tampered downloads are never
installed. The install is verified for your host's platform on every run —
moving vendor/ between machines (e.g. a different OS) automatically installs
the right build the next time.
Pinned versions
Pin a specific chromedriver version (milestone or full version) — for example to match a particular Chrome build:
vendor/bin/update-chromedriver --version=115 vendor/bin/update-chromedriver --version=115.0.5790.170
Install a build for a different machine than the one running the script (e.g. shipping a linux64 build from an arm64 machine):
vendor/bin/update-chromedriver --version=115 --platform=linux64
Recognised platforms are the Chrome-for-Testing identifiers:
linux64, linux-arm64, mac-x64, mac-arm64, win32, win64.
Supported platforms
linux64 (x86-64), linux-arm64 (aarch64), mac-x64, mac-arm64,
win32, win64 — whichever matches the OS and architecture of the machine
that invokes the update command (PHP PHP_OS + php_uname('m')).
How it works
bin/chromedriveris a committed bootstrap shim (this is the composer bin). It finds the real binary and, if it is missing (e.g. directly aftercomposer install), runs the automatic update script to install it first. On Windows the real binary ischromedriver.exenext to it, so the shim keeps proxying; on Linux/macOS the binary replaces the shim itself and later invocations run it directly.- The package ships no binary of its own — everything is downloaded at run time for the host platform and hash-verified before installation.
scripts/update-chromedriver(exposed asvendor/bin/update-chromedriver) resolves the right download from Google's Chrome-for-Testing metadata, so versions are picked up automatically as Chrome releases them. It is always re-runnable and safe to use concurrently with your tests (existing installs are only replaced after a successful download).
License
This Composer package is released under the Apache-2.0 license,
as is the Google chromedriver binary (see LICENSE.chromedriver).