Skip to content

emanuellopes/wordpressdumps

Repository files navigation

WordPress Dumps for Laradumps project

How to use

  1. first install this package with composer and define WP_ENVIRONMENT_TYPE as local
composer require emanuellopes/wordpress-dumps --dev
define('WP_ENVIRONMENT_TYPE', 'local');
  1. if you want to override the location of env file you can always use the filter
add_filter('WordpressDumps/appBasePath', function(string $path) {
    return 'another location';
});
  1. Create a .env file in your theme or plugin or in other place, you can follow the reference for laradumps. https://laradumps.dev/get-started/configuration.html

For Docker users, you can use the following configuration

DS_APP_HOST=host.docker.internal
DS_APP_PORT=9191
DS_AUTO_INVOKE_APP=true #enabled
DS_SEND_QUERIES=true #enabled

For default php configuration you can use the following configuration

DS_APP_HOST=127.0.0.1
DS_APP_PORT=9191
DS_AUTO_INVOKE_APP=true #enabled
DS_SEND_QUERIES=true #enabled

then you can use it in your code like this

ds('my-dump');

About

WordPressDumps Project for laradumps

Resources

Stars

Watchers

Forks

Packages

No packages published