PHPackages                             xenyo/dbtools - 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. [CLI &amp; Console](/categories/cli)
4. /
5. xenyo/dbtools

ActiveLibrary[CLI &amp; Console](/categories/cli)

xenyo/dbtools
=============

Command line tools for importing and exporting databases for Drupal sites.

v1.1(2y ago)0244GPL-2.0-or-laterShell

Since Jul 5Pushed 2y ago2 watchersCompare

[ Source](https://github.com/xenyo/dbtools)[ Packagist](https://packagist.org/packages/xenyo/dbtools)[ RSS](/packages/xenyo-dbtools/feed)WikiDiscussions 1.x Synced yesterday

READMEChangelogDependenciesVersions (5)Used By (0)

xenyo/dbtools
=============

[](#xenyodbtools)

Command line tools for importing and exporting databases on Drupal sites.

Features
--------

[](#features)

- DB dumps exclude cache, history and watchdog and sessions tables.
- Option to import and export with compression (gzip).

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

[](#installation)

Run this command in your project root to install the package:

```
composer require xenyo/dbtools
```

Commands
--------

[](#commands)

All commands must be run from the project root.

### Export database

[](#export-database)

```
composer exec dbe [file]

```

Exports the database to the given file. Defaults to `database.sql`.

### Import database

[](#import-database)

```
composer exec dbi [file]

```

Drops existing database and imports the database from the given file. Defaults to `database.sql`.

### Export database (gzipped)

[](#export-database-gzipped)

```
composer exec dbez [file]

```

Exports the database to the given file. Defaults to `database.sql.gz`.

### Import database (gzipped)

[](#import-database-gzipped)

```
composer exec dbiz [file]

```

Drops existing database and imports the database from the given file. Defaults to `database.sql.gz`.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Total

5

Last Release

1046d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/109136485?v=4)[Xenyo](/maintainers/xenyo)[@xenyo](https://github.com/xenyo)

---

Top Contributors

[![phparkle](https://avatars.githubusercontent.com/u/22560427?v=4)](https://github.com/phparkle "phparkle (24 commits)")

### Embed Badge

![Health badge](/badges/xenyo-dbtools/health.svg)

```
[![Health](https://phpackages.com/badges/xenyo-dbtools/health.svg)](https://phpackages.com/packages/xenyo-dbtools)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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