Requirements: PHP 7.3+.

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


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