PHPackages                             tranquil-tools/laravel-pest-recorder - 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. tranquil-tools/laravel-pest-recorder

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

tranquil-tools/laravel-pest-recorder
====================================

Laravel Pest Browsertest Recorder

1.0.1(2mo ago)236↓65%MITPHPPHP ^8.4CI passing

Since Mar 5Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ComfyCodersBV/laravel-pest-recorder)[ Packagist](https://packagist.org/packages/tranquil-tools/laravel-pest-recorder)[ Docs](https://github.com/comfycodersbv/laravel-pest-recorder)[ RSS](/packages/tranquil-tools-laravel-pest-recorder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (24)Versions (3)Used By (0)

Laravel Pest Browsertest Recorder
=================================

[](#laravel-pest-browsertest-recorder)

This package introduces the `php artisan pest:record` command which provides an interactive way to generate a base for your Pest Browsertests.

Running this command allows you to perform actions in the browser which will be translated into Pest tests. This process works by using the `npx playwirght codegen` command. You can use the Codegen toolbar to add assertions:

[![Playwright Codegen toolbar (assertions)](art/playwright-codegen-toolbar.png)](art/playwright-codegen-toolbar.png)

By default, a development server (`php artisan serve`) will be started, this can be disabled with the `--server=false` flag.

After closing the browser you'll be prompted with a question if you want to expand an existing test file or create a new one, and to give your new test a name:

[![Laravel Pest Recorder CLI output / questions](art/pest-recorder-cli-output.png)](art/pest-recorder-cli-output.png)

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

[](#installation)

You can install the package via composer:

```
composer require tranquil-tools/laravel-pest-recorder --dev
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-pest-recorder-config"
```

The content of the published config can be viewed [here](./config/pest-recorder.php).

Usage
-----

[](#usage)

```
php artisan pest:record

```

or:

```
php artisan pest:record
    --env=testing
    --url=http://localhost:8001
    --server=true
    --migrate-fresh=false
    --seed=false
    --viewport-size=1920,1080

```

Available flags / options
-------------------------

[](#available-flags--options)

The environment variable, obliged when using --migrate-fresh=true

```
--env=testing

```

Provide a URL which will be opened in the browser as starting point for your tests. When omitted, your .env APP\_URL setting will be used.

```
--url=http://localhost:8001

```

Starts a development server (php artisan serve) for the given environment, URL and port.

```
--server=true

```

Run `php artisan migrate:fresh` before starting the server? Specifying --env=... is mandatory.

```
--migrate-fresh=false

```

Do you want to seed the database after migrate:fresh? This option is only available when using `--migrate-fresh=true`.

```
--seed=false

```

Specify viewport dimensions for the browser.

```
--viewport-size=1920,1080

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Pull requests are welcome!

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ComfyCoders BV](https://github.com/comfycodersbv) -

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance84

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~15 days

Total

2

Last Release

74d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/262353729?v=4)[ComfyCoders BV](/maintainers/comfycoders-development)[@comfycoders-development](https://github.com/comfycoders-development)

---

Top Contributors

[![J87NL](https://avatars.githubusercontent.com/u/16107428?v=4)](https://github.com/J87NL "J87NL (15 commits)")

---

Tags

laravelComfyCoders BVlaravel-pest-recorder

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tranquil-tools-laravel-pest-recorder/health.svg)

```
[![Health](https://phpackages.com/badges/tranquil-tools-laravel-pest-recorder/health.svg)](https://phpackages.com/packages/tranquil-tools-laravel-pest-recorder)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-visit

Quickly visit any route of your Laravel app

15614.6k](/packages/spatie-laravel-visit)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[encodia/laravel-health-env-vars

Custom check for Spatie's Laravel Health - Ensure every .env variable you need has been set

20143.5k](/packages/encodia-laravel-health-env-vars)[michiruf/laravel-http-automock

Automatically mock http requests when testing

161.0k](/packages/michiruf-laravel-http-automock)

PHPackages © 2026

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