New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

antennaio/laravel-codeception-dbdump

Create database dumps ready to be used with Codeception
1,515 6

Larablocks Analysis

antennaio/laravel-codeception-dbdump works with Laravel 5 (latest release v0.0.5, May 2, 2016), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: May 2, 2016)
  • 0 downloads a month (needs 10,000)
  • 6 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: May 2, 2016.
  • No releases in the last 12 months.
  • First released: Mar 3, 2016.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require antennaio/laravel-codeception-dbdump
Latest Version:v0.0.5
Laravel:5
License:MIT
Last Updated:Aug 25, 2016
Links: GitHub  ·  Packagist
Maintainer: antennaio

Laravel Codeception DbDump

Create database dumps ready to be used with Codeception

Codeception comes with a nice Db module 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

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

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:

Option Description
--dump[=DUMP] Choose the path for your dump file [default: "tests/_data/dump.sql"]
--empty-database Delete all database tables before any other action
--no-seeding Disable 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

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

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

Alternatives to antennaio/laravel-codeception-dbdump

scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

30,164,579 593
usmanhalalit/pixie

A lightweight, expressive, framework agnostic query builder for PHP.

2,324,518 675
monicahq/laradb

A read-only database browser for Laravel: browse your tables and their rows from...

4,731 8
vcian/laravel-db-auditor

Database DB Auditor provide leverage to audit your MySql,sqlite, PostgreSQL data...

45,013 284
dg/adminer

Customization for Adminer, the best database management tool written in PHP.

10,285 134

Version History

Version Released Laravel License
v0.0.5 ^5.1 MIT
v0.0.4 ^5.1 MIT
v0.0.3 ^5.1 MIT
v0.0.2 ^5.1 MIT
v0.0.1 ^5.1 MIT