2017 © Pedro Peláez
 

library laravel-console-dusk

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

image

nunomaduro/laravel-console-dusk

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

  • Monday, April 9, 2018
  • by nunomaduro
  • Repository
  • 2 Watchers
  • 43 Stars
  • 186 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 7 Versions
  • 564 % Grown

The README.md

, (*1)

Static Analysis Latest Stable Version License , (*2)

About Laravel Console Dusk

Laravel Console Dusk was created by, and is maintained by Nuno Maduro, and allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands., (*3)

Installation

Requires PHP 8.2+, (*4)

Require Laravel Console Dusk using Composer:, (*5)

composer require nunomaduro/laravel-console-dusk

The package provide a config file that allows you to configure some options., (*6)

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:, (*7)

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

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., (*8)

Contributing

Thank you for considering to contribute to Laravel Console Dusk. All the contribution guidelines are mentioned here., (*9)

You can have a look at the CHANGELOG for constant updates & detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: @enunomaduro, (*10)

Support the development

Do you like this project? Support it by donating, (*11)

License

Laravel Console Dusk is an open-sourced software licensed under the MIT license., (*12)

The Versions

09/04 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk

09/04 2018

dev-analysis-qv2LEy

dev-analysis-qv2LEy

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk

09/04 2018

v1.0.3

1.0.3.0

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk

09/04 2018

v1.0.2

1.0.2.0

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk

09/04 2018

v1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk

09/04 2018

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk

29/03 2018

dev-analysis-q1e5x1

dev-analysis-q1e5x1

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

  Sources   Download

MIT

The Requires

 

by Nuno Maduro

laravel php console command-line cli symfony artisan laravel-zero laravel dusk