Installation

Requirements: PHP 7.3+.

  1. First, install Pest via the Composer package manager:
composer require pestphp/pest --dev --with-all-dependencies
  1. On Laravel, require the pest-plugin-laravel and run the pest:install Artisan command:
composer require pestphp/pest-plugin-laravel --dev
php artisan pest:install
  1. On other projects, create a tests folder and run the pest --init command:
./vendor/bin/pest --init
  1. Finally, you can run Pest directly from the command line:
./vendor/bin/pest

Install


In the next section, we are going to learn how to write tests with Pest: Writing Tests →