PHPackages                             mabadir/laravel-cypress - 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. mabadir/laravel-cypress

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

mabadir/laravel-cypress
=======================

Library to bootstrap Cypress testing in Laravel

847[3 PRs](https://github.com/mabadir/laravel-cypress/pulls)PHP

Since Apr 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mabadir/laravel-cypress)[ Packagist](https://packagist.org/packages/mabadir/laravel-cypress)[ RSS](/packages/mabadir-laravel-cypress/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel Cypress ☄️
==================

[](#laravel-cypress-️)

Easily Bootstrap your Laravel application with Cypress helpers to get you up and running with Cypress testing quickly.

Documentation
-------------

[](#documentation)

### Install

[](#install)

You can install this package through composer. Make sure to request this package as Dev Dependency only, to avoid any potential security risks.

`composer require mabadir/laravel-cypress --dev`

Then you need to publish the config file through:

`php artisan vendor:publish`

### Configuration

[](#configuration)

1. First ensure you have configured the URL that you will use for your Cypress Acceptance testing. Usually this URL is something like `acceptance.example.test`. In your `.env` file add an entry:

    `CYPRESS_URL=acceptance.example.test`
2. This package supports swapping the Database on the fly in order to keep your `local` database clean from acceptance testing data. The database needs to be using the `local` database connection. Add this entry to `.env`:

    `CYPRESS_DB=acceptance`
3. Add Cypress commands to `cypress/support/commands.js` by running the command:

    `php artisan cypress:publish`

### Usage

[](#usage)

This package by default offers the following routes:

RouteDescription`__testing__/create/{model}`Creates a model using its factory. Package assumes the model is namespaced under App\\`__testing__/create/{model}/{count}`Creates an array of model and returns then in JSON array.`__testing__/login/{model?}`Creates a model and authenticates the resulted object. The model name is optional and defaults to User. The model has to be Authenticable.`__testing__/migrate`This route basically runs `php artisan migrate:refresh`You can extend or override the built in routes, by creating a new routes file in your app `routes/acceptance.php`. Adding any routes to this file will make them available to your `acceptance` domain name only. All routes are prefixed by `/__testing__/`

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3389914?v=4)[Mina Abadir](/maintainers/mabadir)[@mabadir](https://github.com/mabadir)

---

Top Contributors

[![mabadir](https://avatars.githubusercontent.com/u/3389914?v=4)](https://github.com/mabadir "mabadir (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/mabadir-laravel-cypress/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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