vincekruger / composer-wpclean
Clean a default Wordpress Installation using Composer installation
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 119
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
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 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"