vincekruger/composer-wpclean

Clean a default Wordpress Installation using Composer installation

Installs: 119

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type: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 was developed to give assist in WP Deployments. It will clean out all the de default plugins and themes, as well as create a standard wp-config.php in the set wp directory.

Working Features

  • Removing Plugins
    • hello world
    • akismet
  • Removing Themes
    • twentyten
    • twentyeleven
    • twentytwelve
    • twentythirteen
    • twentyfourteen
    • twentyfifteen
    • twentysixteen
    • twentyseventeen
    • twentyeighteen
  • Removing wp-config-sample.php
  • Creating wp-config.php

How does it work?

This package is included as a composer-plugin and will run on a the post-autoload-dump trigger.

How to install

composer require vincekruger/wpclean

Environment Configuration

# 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"