orchestra / dusk-updater
Updater for Laravel Dusk ChromeDriver binaries
Installs: 613 288
Dependents: 6
Suggesters: 0
Security: 0
Stars: 10
Watchers: 6
Forks: 3
Open Issues: 0
Requires
- php: ^8.0
- composer-runtime-api: ^2.2
- ext-openssl: *
- ext-zip: *
- composer/semver: ^1.5 || ^3.0
- guzzlehttp/guzzle: ^7.2
- symfony/console: ^6.0 || ^7.0
- symfony/polyfill-ctype: ^1.9
- symfony/polyfill-php83: ^1.28
- symfony/process: ^6.0 || ^7.0
Requires (Dev)
- laravel/dusk: ^6.0 || ^7.0 || ^8.0
- laravel/pint: ^1.4
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^9.6
Conflicts
- laravel/dusk: <6.0.0 || >=9.0.0
This package is auto-updated.
Last update: 2024-10-08 15:02:08 UTC
README
This is a fork based on staudenmeir/dusk-updater but uses Symfony Console to allow it to be used outside of Laravel installation.
Introduction
This Symfony command updates your Laravel Dusk ChromeDriver binaries to the latest or specified release.
Supports all versions of Laravel Dusk especially those used outside of Laravel installation.
Installation
composer require --dev orchestra/dusk-updater
Usage
Updating ChromeDriver
Download the latest stable ChromeDriver release:
php vendor/bin/dusk-updater update
You can also specify the major Chrome/Chromium version you are using:
php vendor/bin/dusk-updater update 109
Or you directly specify the desired ChromeDriver version:
php vendor/bin/dusk-updater update 109.0.5414.74
If Dusk is still using the previous version after the update, there is probably an old ChromeDriver process running that you need to terminate first.
Checking Chrome Versions
You can check if the installed Chrome and ChromeDriver version using:
php vendor/bin/dusk-updater detect
The command will prompt you to download a new ChromeDriver if it is outdated.
Specify the absolute path to your custom Chrome/Chromium installation (not supported on Windows):
php vendor/bin/dusk-updater detect --chrome-dir=/usr/bin/google-chrome
Finally, you can also tell the command to automatically download a new version if it is outdated using:
php vendor/bin/dusk-updater detect --auto-update