next | ||||
---|---|---|---|---|
|
Packages Toolkit for Laravel is a collection of packages that have been designed to write, test, and preview your Laravel packages.
Before going through the rest of this documentation, please take some time to read the Package Development section of Laravel's own documentation, if you haven't done so yet.
[[toc]]
To start using Packages Toolkit for Laravel you can first install the components:
composer require --dev "orchestra/testbench"
Alternatively, if you need to run Dusk tests on your Laravel package you should install the following dependency instead:
composer require --dev "orchestra/testbench-dusk"
Next, you can run the following command to scaffold your package with the recommended setup:
vendor/bin/testbench workbench:install
Testbench simplifies the process to create feature and integration tests for your Laravel packages without massive configuration and build steps.
Laravel | Testbench | Recommended Versions |
---|---|---|
8.x | 6.x | ^6.45 |
9.x | 7.x | ^7.50 |
10.x | 8.x | ^8.31 |
11.x | 9.x | ^9.9 |
Testbench Dusk is built on top of Testbench to provide support running browser-based tests for your Laravel packages using Laravel Dusk.
Laravel | Testbench Dusk | Recommended Versions |
---|---|---|
8.x | 6.x | ^6.50 |
9.x | 7.x | ^7.51 |
10.x | 8.x | ^8.33 |
11.x | 9.x | ^9.11 |
Testbench Core provides the full testing API and CLI testbench
binary which is being used by Testbench, Testbench Dusk, and Workbench. This component is accessible via orchestra/testbench
without any further requirements.
Laravel | Testbench Core |
---|---|
8.x | 6.x |
9.x | 7.x |
10.x | 8.x |
11.x | 9.x |
Canvas replicates all of the make
artisan commands available in your basic Laravel application to speed up your Laravel package development.
Laravel | Canvas | Recommended Versions |
---|---|---|
8.x | 6.x | ^6.10 |
9.x | 7.x | ^7.12 |
10.x | 8.x | ^8.12 |
11.x | 9.x | ^9.2 |
Workbench provides a set of configurable actions and commands to allow previewing, interacting, and serving your Laravel packages during development. This component is accessible via orchestra/testbench
without any further requirements.
Laravel | Workbench | Recommended Versions |
---|---|---|
8.x | - | - |
9.x | 7.x | ^7.17 |
10.x | 8.x | ^8.17 |
11.x | 9.x | ^9.13 |