Download the PHP package daan/strip-db-dump without Composer

On this page you can find all versions of the php package daan/strip-db-dump. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package strip-db-dump

WP-CLI Strip Database Dump

This is a tiny plugin, which adds shorthands to WP-CLI which allows you to easily create database dumps and exclude sensitive data.

The following options are available:

After running the command, 2 separate database exports are created:

  1. [your-filename]-1.sql containing all tables where data should be retained.
  2. [your-filename]-2.sql containing all tables where all data should be stripped.

[!IMPORTANT] The created DB dumps must be imported in the provided order.

Usage

To create a database that excludes orders, customers and users and save it one directory up from the current directory, run it as follows:

`

To just strip customer data and store the dump in the current directory, run:

`

[!NOTE] It's not required to append a file extension to the filename argument.

If no filename is provided, a random one will be generated and saved in WordPress' root directory.

[!IMPORTANT] When the --users parameter is added to the command, the users table will be empty when importing it to your database. This means you need to create at least a new administrator user after importing the generated table. This can be done using the following WP-CLI command: wp user create username [email protected] --role=administrator.

3rd Party Plugin Support

The plugin currently removes sensitive data (i.e. any data containing personal information) for the following plugins:

[!TIP] If You want this plugin to support more 3rd party plugins, feel free to submit a pull request!

As of v1.1.1 adding support for additional 3rd party plugins is easy. It's a matter of adding a class to src/Compatibility and implementing this plugin's different interfaces along with their required methods. If your plugin requires truncating of Orders and Customers tables, your Compatibility class should implement the CustomersCompatibilityInterface and the OrdersCompatibilityInterface.

Each method should return an array of corresponding table names without prefix! Then, add the new class to the corresponding handlers in Main and you're ready to submit your PR! :-)

Installation

Download the latest release from the Releases page (or click the link) and install it in WordPress:

  1. Navigate to your Administrator area,
  2. Go to Plugins >> Add New Plugin
  3. Click the Upload Plugin button in the top-left of the screen
  4. Browse... to the ZIP file and install it by clicking Install Now.

All versions of strip-db-dump with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package daan/strip-db-dump contains the following files

Loading the files please wait ...