PHPackages                             antennaio/laravel-codeception-dbdump - 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. antennaio/laravel-codeception-dbdump

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

antennaio/laravel-codeception-dbdump
====================================

Create database dumps ready to be used with Codeception

v0.0.5(10y ago)61.5k1MITPHP

Since Mar 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/antennaio/laravel-codeception-dbdump)[ Packagist](https://packagist.org/packages/antennaio/laravel-codeception-dbdump)[ Docs](https://github.com/antennaio/laravel-codeception-dbdump)[ RSS](/packages/antennaio-laravel-codeception-dbdump/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Laravel Codeception DbDump
==========================

[](#laravel-codeception-dbdump)

*Create database dumps ready to be used with Codeception*

Codeception comes with a nice [Db module](http://codeception.com/docs/modules/Db) that keeps the test database clean before each test is run. To use it you are expected to put a database dump in `tests/_data` directory. This is a major pain, because each time the database changes, a new dump is required. This package adds a single command to your project that will migrate, seed and dump a test database making it ready to be used in Codeception tests.

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

[](#installation)

Install through composer:

```
composer require antennaio/laravel-codeception-dbdump:~0.0.1

```

Add the service provider to config:

```
// config/app.php
'provider' => [
    ...
    Antennaio\Codeception\DbDumpServiceProvider::class,
    ...
];

```

Usage
-----

[](#usage)

Run the command with a single argument `connection`, which is one of the connections defined in `config/database.php`.

```
php artisan codeception:dbdump connection

```

Optionally, you can specify a path to the dump file:

```
php artisan codeception:dbdump connection --dump=tests/_data/test.sql

```

All available options:

OptionDescription--dump\[=DUMP\]Choose the path for your dump file \[default: "tests/\_data/dump.sql"\]--empty-databaseDelete all database tables before any other action--no-seedingDisable seeding in the dump process--seeder-class\[=SEEDER-CLASS\]Choose the seeder class \[default: "DatabaseSeeder"\]--binary\[=BINARY\]Specify the path to mysqldump (if using mysql driver) or sqlite3 (if using sqlite driver)Run the command whenever your tests run
---------------------------------------

[](#run-the-command-whenever-your-tests-run)

It's possible to have this command run automatically before any of your tests are executed by adding it to `tests/_bootstrap.php`:

```
exec('php artisan codeception:dbdump connection');

```

Compatibility
-------------

[](#compatibility)

The `codeception:dbdump` command is currently compatible with MySQL and SQLite drivers.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

5

Last Release

3665d ago

### Community

Maintainers

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

---

Top Contributors

[![antennaio](https://avatars.githubusercontent.com/u/530421?v=4)](https://github.com/antennaio "antennaio (18 commits)")

---

Tags

phptestinglaravelcodeceptiondatabasedumpmysqlsqlite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/antennaio-laravel-codeception-dbdump/health.svg)

```
[![Health](https://phpackages.com/badges/antennaio-laravel-codeception-dbdump/health.svg)](https://phpackages.com/packages/antennaio-laravel-codeception-dbdump)
```

###  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)[chriskite/phactory

A Database Factory for PHP Unit Tests

140216.9k8](/packages/chriskite-phactory)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)

PHPackages © 2026

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