vincekruger / composer-wpclean
使用Composer安装清理默认Wordpress安装
0.3
2017-09-01 09:15 UTC
Requires
- composer-plugin-api: ^1.0
- johnpbloch/wordpress: *
- vlucas/phpdotenv: ^2.4
Requires (Dev)
- composer/composer: 1.0.*@dev
Conflicts
- composer/installers: <1.0.6
This package is not auto-updated.
Last update: 2019-08-07 19:38:22 UTC
README
WPClean是为了在WP部署中提供帮助而开发的。它将清理所有默认插件和主题,并在指定wp目录中创建一个标准的wp-config.php文件。
工作特性
- 删除插件
- hello world
- akismet
- 删除主题
- twentyten
- twentyeleven
- twentytwelve
- twentythirteen
- twentyfourteen
- twentyfifteen
- twentysixteen
- twentyseventeen
- twentyeighteen
- 删除wp-config-sample.php
- 创建wp-config.php
它是如何工作的?
此包作为composer-plugin包含,并将在post-autoload-dump
触发器上运行。
如何安装
composer require vincekruger/wpclean
环境配置
# Create an .env file
DB_NAME=database_name_here
DB_USER=username_here
DB_PASSWORD=password_here
DB_HOST=localhost
DB_PREFIX=wp_
WP_DEBUG=false
WP_DEBUG_LOG=false
WP_DEBUG_DISPLAY=false
DISABLE_WP_CRON=false
WP_ALLOW_MULTISITE=false
# Keys and salts should be 64 chars
AUTH_KEY="put_your_unique_phrase_here"
SECURE_AUTH_KEY="put_your_unique_phrase_here"
LOGGED_IN_KEY="put_your_unique_phrase_here"
NONCE_KEY="put_your_unique_phrase_here"
AUTH_SALT="put_your_unique_phrase_here"
SECURE_AUTH_SALT="put_your_unique_phrase_here"
LOGGED_IN_SALT="put_your_unique_phrase_here"
NONCE_SALT="put_your_unique_phrase_here"