PHPackages                             faissaloux/pest-plugin-database - 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. [Framework](/categories/framework)
4. /
5. faissaloux/pest-plugin-database

ActiveLibrary[Framework](/categories/framework)

faissaloux/pest-plugin-database
===============================

Pest plugin for databases structure

v0.3.0(2mo ago)40MITPHPPHP ^8.2CI passing

Since Feb 21Pushed 2mo agoCompare

[ Source](https://github.com/faissaloux/pest-plugin-database)[ Packagist](https://packagist.org/packages/faissaloux/pest-plugin-database)[ Fund](https://paypal.me/faissaloux)[ GitHub Sponsors](https://github.com/faissaloux)[ RSS](/packages/faissaloux-pest-plugin-database/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (12)Versions (6)Used By (0)

PEST PLUGIN DATABASE
====================

[](#pest-plugin-database)

A pest plugin to test your database structure.

[![Tests](https://github.com/faissaloux/pest-plugin-database/actions/workflows/tests.yml/badge.svg)](https://github.com/faissaloux/pest-plugin-database/actions/workflows/tests.yml)[![Packagist Version](https://camo.githubusercontent.com/713df3280d861cccb075363db6defeb9708c69fae221ad292a274cc4a5e57e2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661697373616c6f75782f706573742d706c7567696e2d6461746162617365)](https://camo.githubusercontent.com/713df3280d861cccb075363db6defeb9708c69fae221ad292a274cc4a5e57e2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661697373616c6f75782f706573742d706c7567696e2d6461746162617365)[![Total Downloads on Packagist](https://camo.githubusercontent.com/2321c18ef0a66f8ea6d3e6e8974efb3a0eaf52abbcf3611618742c93939f6f6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661697373616c6f75782f706573742d706c7567696e2d64617461626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/faissaloux/pest-plugin-database)[![Packagist License](https://camo.githubusercontent.com/aa2f82d158a3c102a421629519c84463dbc29067cfce15412fe0187136d1b93b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6661697373616c6f75782f706573742d706c7567696e2d6461746162617365)](https://camo.githubusercontent.com/aa2f82d158a3c102a421629519c84463dbc29067cfce15412fe0187136d1b93b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6661697373616c6f75782f706573742d706c7567696e2d6461746162617365)

Requirements
------------

[](#requirements)

- php ^8.2
- pestphp ^3.0 | ^4.0
- Laravel ^11.0 | ^12.0

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

[](#installation)

```
composer require faissaloux/pest-plugin-database --dev
```

Supported Drivers
-----------------

[](#supported-drivers)

- MySQL
- SQLite
- PostgreSQL

Expectations
------------

[](#expectations)

Check driver.

```
expect()->driver->toBe('mysql');
```

Check database name.

```
expect()->database->toBe('database');
```

Check tables in your database.

```
expect()->database->tables->toBe(['users', 'posts']);
```

Check number of tables in your database.

```
expect()->database->tables->toHaveCount(9);
```

Check for specific connection.

```
expect('connection')->database->toBe('database');
```

Support
-------

[](#support)

If you encounter any issues or have questions, feel free to open an issue on this repository's [Issues page](https://github.com/faissaloux/pest-plugin-database/issues). I'll try to respond as soon as possible.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance87

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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 ~33 days

Total

3

Last Release

64d ago

### Community

Maintainers

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

---

Top Contributors

[![faissaloux](https://avatars.githubusercontent.com/u/60013703?v=4)](https://github.com/faissaloux "faissaloux (27 commits)")

---

Tags

databasepesttestingphpplugintestingunitframeworktestpestdatabasestructure

### Embed Badge

![Health badge](/badges/faissaloux-pest-plugin-database/health.svg)

```
[![Health](https://phpackages.com/badges/faissaloux-pest-plugin-database/health.svg)](https://phpackages.com/packages/faissaloux-pest-plugin-database)
```

###  Alternatives

[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

99600.5k8](/packages/defstudio-pest-plugin-laravel-expectations)[pestphp/pest-plugin-livewire

The Pest Livewire Plugin

666.7M815](/packages/pestphp-pest-plugin-livewire)[pestphp/pest-plugin-faker

The Pest Faker Plugin

387.1M259](/packages/pestphp-pest-plugin-faker)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

681.0M17](/packages/pestphp-pest-plugin-stressless)[jonpurvis/lawman

A PestPHP Plugin to help with architecture testing SaloonPHP integrations

4138.2k10](/packages/jonpurvis-lawman)[spatie/pest-plugin-route-testing

Make sure all routes in your Laravel app are ok

13872.4k](/packages/spatie-pest-plugin-route-testing)

PHPackages © 2026

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