PHP code example of erikgreasy / wp-console
1. Go to this page and download the library: Download erikgreasy/wp-console library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
erikgreasy / wp-console example snippets
#!/usr/bin/env php
use Erikgreasy\WpConsole\ConsoleApplication;
__ . '/web/wp/wp-load.php';
new ConsoleApplication(__DIR__ . '/commands');
composer dump-autoload
php cli make:command CommandName
db:dump