PHPackages                             nunomaduro/laravel-console-dusk - 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. [CLI &amp; Console](/categories/cli)
4. /
5. nunomaduro/laravel-console-dusk

ActiveLibrary[CLI &amp; Console](/categories/cli)

nunomaduro/laravel-console-dusk
===============================

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

v1.15.0(2mo ago)16255.4k↓41.3%24[9 issues](https://github.com/nunomaduro/laravel-console-dusk/issues)[2 PRs](https://github.com/nunomaduro/laravel-console-dusk/pulls)7MITPHPPHP ^8.2CI passing

Since Mar 29Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/nunomaduro/laravel-console-dusk)[ Packagist](https://packagist.org/packages/nunomaduro/laravel-console-dusk)[ Fund](https://www.paypal.com/paypalme/enunomaduro)[ GitHub Sponsors](https://github.com/nunomaduro)[ RSS](/packages/nunomaduro-laravel-console-dusk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (26)Used By (7)

 [![](docs/example.gif)](docs/example.gif)

 [![Static Analysis](https://camo.githubusercontent.com/f17c57867514cabeb7c10c103cee0a10bd79e370c28803cb9a7a44dbeee1ea76/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e756e6f6d616475726f2f6c61726176656c2d636f6e736f6c652d6475736b2f7374617469632e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d73746174696320616e616c79736973)](https://github.com/nunomaduro/laravel-console-dusk/actions/workflows/static.yml) [![Latest Stable Version](https://camo.githubusercontent.com/cd2c9970d06fa562c54df70d56300fd34c5a42d0a0570274d6fddae685f2247e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e756e6f6d616475726f2f6c61726176656c2d636f6e736f6c652d6475736b3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nunomaduro/laravel-console-dusk) [![License](https://camo.githubusercontent.com/50f76bdabfc5a58846a96b276d26a1d8d862b13806724767ab2a0a4c272124cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e756e6f6d616475726f2f6c61726176656c2d636f6e736f6c652d6475736b3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nunomaduro/laravel-console-dusk)

About Laravel Console Dusk
--------------------------

[](#about-laravel-console-dusk)

Laravel Console Dusk was created by, and is maintained by [Nuno Maduro](https://github.com/nunomaduro), and allows the usage of [Laravel Dusk](https://github.com/laravel/dusk) in Laravel/Laravel Zero artisan commands.

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

[](#installation)

> **Requires [PHP 8.2+](https://php.net/releases)**

Require Laravel Console Dusk using [Composer](https://getcomposer.org):

```
composer require nunomaduro/laravel-console-dusk
```

The package provide a config file that allows you to configure some options.

```
return [
    /*
    |--------------------------------------------------------------------------
    | Laravel Console Dusk Paths
    |--------------------------------------------------------------------------
    |
    | Here you may configure the name of screenshots and logs directory as you wish.
    */
    'paths' => [
        'screenshots' => storage_path('laravel-console-dusk/screenshots'),
        'log'         => storage_path('laravel-console-dusk/log'),
    ],

    /*
    | --------------------------------------------------------------------------
    | Headless Mode
    | --------------------------------------------------------------------------
    |
    | When false it will show a Chrome window while running. Within production
    | it will be forced to run in headless mode.
    */
    'headless' => true,

    /*
    | --------------------------------------------------------------------------
    | Driver Configuration
    | --------------------------------------------------------------------------
    |
    | Here you may pass options to the browser driver being automated.
    |
    | A list of available Chromium command line switches is available at
    | https://peter.sh/experiments/chromium-command-line-switches/
    */
    'driver' => [
        'chrome' => [
            'options' => [
                '--disable-gpu',
            ],
        ],
    ],
];
```

You can publish the config file using the following artisan command:

```
php artisan vendor:publish --provider="NunoMaduro\LaravelConsoleDusk\LaravelConsoleDuskServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

```
class VisitLaravelZeroCommand extends Command
{
    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $this->browse(function ($browser) {
            $browser->visit('http://laravel-zero.com')
                ->assertSee('100% Open Source');
        });
    }
}
```

Check how use [Laravel Dusk here](https://github.com/laravel/dusk).

Contributing
------------

[](#contributing)

Thank you for considering to contribute to Laravel Console Dusk. All the contribution guidelines are mentioned [here](CONTRIBUTING.md).

You can have a look at the [CHANGELOG](CHANGELOG.md) for constant updates &amp; detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: [@enunomaduro](https://twitter.com/enunomaduro)

Support the development
-----------------------

[](#support-the-development)

**Do you like this project? Support it by donating**

- PayPal: [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L)
- Patreon: [Donate](https://www.patreon.com/nunomaduro)

License
-------

[](#license)

Laravel Console Dusk is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance82

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~130 days

Recently: every ~206 days

Total

23

Last Release

84d ago

PHP version history (5 changes)v1.0.0PHP ^7.1.3

v1.8.0PHP ^7.2.5

v1.9.0PHP ^7.2.5|^8.0

v1.11.0PHP ^8.1

v1.13.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/86cfef5c1f5195df1a9db17a5f8ecb34455e1f0133a725de9acf7f2fb26ac6a1?d=identicon)[nunomaduro](/maintainers/nunomaduro)

---

Top Contributors

[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (40 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (26 commits)")[![claudiunicolaa](https://avatars.githubusercontent.com/u/15197275?v=4)](https://github.com/claudiunicolaa "claudiunicolaa (11 commits)")[![manelgavalda](https://avatars.githubusercontent.com/u/17626490?v=4)](https://github.com/manelgavalda "manelgavalda (6 commits)")[![yoramdelangen](https://avatars.githubusercontent.com/u/1531885?v=4)](https://github.com/yoramdelangen "yoramdelangen (6 commits)")[![underdpt](https://avatars.githubusercontent.com/u/8122137?v=4)](https://github.com/underdpt "underdpt (2 commits)")[![spenserhale](https://avatars.githubusercontent.com/u/5643366?v=4)](https://github.com/spenserhale "spenserhale (1 commits)")[![fabriciojs](https://avatars.githubusercontent.com/u/1116377?v=4)](https://github.com/fabriciojs "fabriciojs (1 commits)")[![Michael-Brooks](https://avatars.githubusercontent.com/u/3197231?v=4)](https://github.com/Michael-Brooks "Michael-Brooks (1 commits)")[![lhilton](https://avatars.githubusercontent.com/u/745338?v=4)](https://github.com/lhilton "lhilton (1 commits)")

---

Tags

phpcliconsolecommand-linesymfonylaravelartisanlaravel-zeroLaravel Dusk

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nunomaduro-laravel-console-dusk/health.svg)

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

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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