Download the PHP package pjanser/craft-db-extract without Composer
On this page you can find all versions of the php package pjanser/craft-db-extract. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pjanser/craft-db-extract
More information about pjanser/craft-db-extract
Files in pjanser/craft-db-extract
Package craft-db-extract
Short Description A small helper Plugin for CraftCMS to download the DB over HTTP requiring authorization.
License MIT
Informations about the package craft-db-extract
craft-db-extract plugin for Craft CMS 3.x
A small helper Plugin for CraftCMS to download the DB over HTTP requiring authorization.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require pjanser/craft-db-extract
- In the Control Panel, go to Settings → Plugins and click the “Install” button for craft-db-extract.
craft-db-extract Overview
This plugin makes a web controller action available to pull the database export.
Using craft-db-extract
The controller action requires an admin login. Provide your credentials in the Authoirization header with basic authentication.
HTTP Header:
Tip: If you experience 401 Unauthorized eventhough you provide correct admin credentials, you can try to add the following line to your .htaccess
:
Pulling the database in *.sql format:
Pulling the database in *.sql.gz format:
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