duncan3dc/dusk

Use Laravel Dusk without the full Laravel framework
8,152 84
Install
composer require duncan3dc/dusk
Latest Version:1.2.0
PHP:^7.3 || ^8.0
License:Apache-2.0
Last Updated:Jun 12, 2026
Links: GitHub  ·  Packagist
Maintainer: duncan3dc

dusk

Use Dusk browser automation as a standalone component without the full Laravel framework

Full documentation is available at http://duncan3dc.github.io/dusk/
PHPDoc API documentation is also available at http://duncan3dc.github.io/dusk/api/

release build coverage

Installation

The recommended method of installing this library is via Composer.

Run the following command from your project root:

$ composer require duncan3dc/dusk

Getting Started

use duncan3dc\Laravel\Dusk;

require __DIR__ . "/vendor/autoload.php";

$dusk = new Dusk;

$dusk->visit("http://example.com");
echo $dusk->element("h1")->getText() . "\n";

Read more at http://duncan3dc.github.io/dusk/

Changelog

A Changelog has been available since the beginning of time

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter

Related Packages

codezero/laravel-localizer

Automatically detect and set an app locale that matches your visitor's preferenc...

407,859 50
teepluss/console

Browser console for Laravel Framework.

51,678 43
hisorange/browser-detect

Browser & Mobile detection package for Laravel.

11,083,771 1,142
unicodeveloper/laravel-identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operat...

21,996 193
lara-zeus/torch-filament

Infolist component to highlight code using Torchlight Engine

3,452 7