paulbunyannet / wordpress-artisan by paulbunyannet

Artisan commands to interact with Wordpress
18,795
0
4
Package Data
Maintainer Username: paulbunyannet
Maintainer Contact: naten@paulbunyan.net (Nate Nolting)
Package Create Date: 2016-04-27
Package Last Update: 2024-07-24
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:05:03
Package Statistics
Total Downloads: 18,795
Monthly Downloads: 135
Daily Downloads: 0
Total Stars: 0
Total Watchers: 4
Total Forks: 4
Total Open Issues: 0

Wordpress Artisan commands

Build Status

wp
    wp:down                   Put Wordpress in maintenance mode
    wp:keys                   Generate Wordpress Authentication keys
    wp:up                     Bring Wordpress back out of maintenance mode
    wp:clear-transient-cache  Clear all the transient caches from the database

Config

Run php artisan vendor:publish --provider="Pbc\WordpressArtisan\WordpressArtisanServiceProvider" --tag="config" --tag="lang" to get the configuration and language files and then update as needed.

Commands

Wordpress Maintenance

Put Wordpress in maintenance mode.

Usage

php artisan wp:down to put WP in maintenance mode

php artisan wp:up to bring WP back out of maintenance mode

Wordpress Secret Keys

Builds Wordpress authentication keys and applies them to the .env file, similar to the keys generated at https://api.wordpress.org/secret-key/1.1/salt/

Usage

php artisan wp:keys to generate new keys

Wordpress Clear Transient Cache

Clear all the transient caches from the database. Requires https://github.com/corcel/corcel to be installed and configured.

Usage

php artisan wp:clear-transient-cache to clear the transient caches from the database

Roadmap

Add other useful artisan commands to interact with wordpress. If you have an idea send in a PR.

License

The wordpress-artisan package is open-sourced software licensed under the MIT license