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(5y ago)11471[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 today

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 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

1875d 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

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k60](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/postie

Get shipping rates, tracking status and print labels with Australia Post, UPS, USPS, FedEx, DHL Express, and more.

1219.3k](/packages/verbb-postie)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

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