vincekruger/composer-wpclean

使用Composer安装清理默认Wordpress安装

安装: 119

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:composer-plugin

0.3 2017-09-01 09:15 UTC

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"