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)0243↓100%GPL-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 1mo ago

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 32% 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

1000d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ccd4fbab4b269ea7457a23c670d830eb6c90b159204ba8e4cd0b511774e1282?d=identicon)[xenyo](/maintainers/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

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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