PHPackages                             didix16/laravel-playwright - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. didix16/laravel-playwright

ActiveLibrary[Testing &amp; Quality](/categories/testing)

didix16/laravel-playwright
==========================

Laravel Playwright Boilerplate

v1.0.0(1y ago)11151[1 PRs](https://github.com/didix16/laravel-playwright/pulls)MITPHPPHP ^8.0

Since Nov 4Pushed 1y agoCompare

[ Source](https://github.com/didix16/laravel-playwright)[ Packagist](https://packagist.org/packages/didix16/laravel-playwright)[ Docs](https://github.com/didix16/laravel-playwright)[ RSS](/packages/didix16-laravel-playwright/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel + Playwright Integration
================================

[](#laravel--playwright-integration)

This package provides the necessary boilerplate to quickly begin testing your Laravel applications using Playwright.

Installation
------------

[](#installation)

If you haven't already installed [Playwright](https://playwright.dev/docs/intro); that's your first step.

```
yarn create playwright
```

If you want to use also the test components, you can add the `--ct` flag to the command above.

```
yarn create playwright --ct
```

Now you're ready to install this package through Composer. Pull it in as a development-only dependency.

```
composer require didix16/laravel-playwright --dev
```

Finally, run the `playwright:boilerplate` command to copy over the initial boilerplate files for your Playwright tests.

```
php artisan playwright:boilerplate
```

Also, you can run the command with the `--ct` option to copy the boilerplate for the test components.

```
php artisan playwright:boilerplate --ct={none|react|solid|vue|svelte}
```

Configuration
-------------

[](#configuration)

In order to make it work, you have to edit the `playwright-ct.config.ts` or `playwright.config.ts` file and set the following properties:

```
testDir: './tests/playwright', // or whatever your Playwright test directory is
workers: 1, // set it to 1 to avoid database collisions
use: {
    baseURL: 'http://localhost:8000', // or whatever your Laravel test app URL is
},
```

}

That's it! You're ready to go. We've provided an `laravel-examples.spec.ts` spec for you to play around with it. Let's run it now:

```
yarn playwright test

```

TODO
----

[](#todo)

- Make the tests can run in parallel to avoid database collisions

Credits
-------

[](#credits)

- [Yoann Frommelt](https://www.linkedin.com/in/yoannfrommelt/)
- [Jeffrey Way](https://twitter.com/jeffrey_way) for the amazing inspiration

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

554d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff5b3b9759afa8c62b1a7ef35d31a80fef6b9ba1413afecde0890b33f5db351d?d=identicon)[didix16](/maintainers/didix16)

---

Top Contributors

[![yfrommelt](https://avatars.githubusercontent.com/u/44576727?v=4)](https://github.com/yfrommelt "yfrommelt (4 commits)")[![kmcluckie](https://avatars.githubusercontent.com/u/721817?v=4)](https://github.com/kmcluckie "kmcluckie (3 commits)")[![brunoWebID](https://avatars.githubusercontent.com/u/75976027?v=4)](https://github.com/brunoWebID "brunoWebID (1 commits)")[![didix16](https://avatars.githubusercontent.com/u/10291092?v=4)](https://github.com/didix16 "didix16 (1 commits)")

---

Tags

laravelend-to-endplaywtight

### Embed Badge

![Health badge](/badges/didix16-laravel-playwright/health.svg)

```
[![Health](https://phpackages.com/badges/didix16-laravel-playwright/health.svg)](https://phpackages.com/packages/didix16-laravel-playwright)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
