emanuellopes/wordpress-dumps
最新稳定版本:1.0.1
Composer 安装命令:
composer require emanuellopes/wordpress-dumps
包简介
WordPress Package for laradumps
README 文档
README
How to use
- first install this package with composer and define WP_ENVIRONMENT_TYPE as local
composer require emanuellopes/wordpress-dumps --dev
define('WP_ENVIRONMENT_TYPE', 'local');
- 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'; });
- 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');
统计信息
- 总下载量: 1.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-17