PHPackages                             pjanser/craft-db-extract - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. pjanser/craft-db-extract

AbandonedArchivedCraft-plugin[HTTP &amp; Networking](/categories/http)

pjanser/craft-db-extract
========================

A small helper Plugin for CraftCMS to download the DB over HTTP requiring authorization.

1.1.0(4y ago)11451[4 PRs](https://github.com/qbasic16/craft-db-extract/pulls)MITPHP

Since May 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/qbasic16/craft-db-extract)[ Packagist](https://packagist.org/packages/pjanser/craft-db-extract)[ RSS](/packages/pjanser-craft-db-extract/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (9)Used By (0)

craft-db-extract plugin for Craft CMS 3.x
=========================================

[](#craft-db-extract-plugin-for-craft-cms-3x)

A small helper Plugin for CraftCMS to download the DB over HTTP requiring authorization.

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

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

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require pjanser/craft-db-extract

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for craft-db-extract.

craft-db-extract Overview
-------------------------

[](#craft-db-extract-overview)

This plugin makes a web controller action available to pull the database export.

Using craft-db-extract
----------------------

[](#using-craft-db-extract)

The controller action requires an admin login. Provide your credentials in the **Authoirization** header with basic authentication.

HTTP Header:

```
Authorization: Basic xxxxxxxxxxxx
```

**Tip:** If you experience **401 Unauthorized** eventhough you provide correct admin credentials, you can try to add the following line to your `.htaccess`:

```
SetEnvIf Authorization (.+) HTTP_AUTHORIZATION=$0
```

Pulling the database in \*.sql format:

```
GET YOUR_WEBSITE/actions/craft-db-extract/db-export
```

Pulling the database in \*.sql.gz format:

```
GET YOUR_WEBSITE/actions/craft-db-extract/db-export?compression=gzip
```

craft-db-extract Roadmap
------------------------

[](#craft-db-extract-roadmap)

Some things to do, and ideas for potential features:

- Authorization with user token
- Add different compressions
- Configurable filename for response

Brought to you by [P. Janser](https://github.com/qbasic16/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

1821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b5f0396a4d65b8042da52dbfc88e641fa040e98990dec210bebc5a08321a5dd?d=identicon)[pjanser](/maintainers/pjanser)

---

Top Contributors

[![qbasic16](https://avatars.githubusercontent.com/u/13191383?v=4)](https://github.com/qbasic16 "qbasic16 (5 commits)")

---

Tags

cmsCraftcraftcmscraft-plugincraft-db-extract

### Embed Badge

![Health badge](/badges/pjanser-craft-db-extract/health.svg)

```
[![Health](https://phpackages.com/badges/pjanser-craft-db-extract/health.svg)](https://phpackages.com/packages/pjanser-craft-db-extract)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[jalendport/craft-fetch

Utilise the Guzzle HTTP client from within your Craft templates.

2327.6k1](/packages/jalendport-craft-fetch)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

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