Getting Started
Install Playwright PHP and get one browser script or test running in a few minutes.
Get Playwright PHP running in about ten minutes: install the package, launch one real browser, turn the script into one PHPUnit test, debug one failure, then run it in CI.
You do not need to understand the full browser model yet. Start is the shortest reliable path to a first success.
Start with a working run
You only need PHP, Composer, Node.js, and one browser install command. Start here if this is a new project:
- Install Playwright PHP
- Run your first script
- Write your first test
- Debug your first failure
- Run it in CI
Each page is intentionally short and should produce a visible result or command output before you continue.
Pick the next step
- New project: start with Install.
- Package already installed: jump to First script.
- You already use PHPUnit: jump to First test.
- A first test fails: jump to Debug your first failure.
- You need GitHub Actions: jump to CI.
After your first success
- Learn the model: The Guide
- Choose reliable locators: Locators
- Look up exact methods: API reference