Download the PHP package wp-cli/doctor-command without Composer

On this page you can find all versions of the php package wp-cli/doctor-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package doctor-command

wp-cli/doctor-command

Diagnose problems within WordPress by running a series of checks for symptoms.

Testing

Quick links: Contributing

Overview

wp doctor lets you easily run a series of configurable checks to diagnose what's ailing with WordPress.

Without wp doctor, your team has to rely on their memory to manually debug problems. With wp doctor, your team saves hours identifying the health of your WordPress installs by codifying diagnosis procedures as a series of checks to run with WP-CLI. wp doctor comes with dozens of checks out of the box, and supports customized doctor.yml files to define the checks that are most important to you.

Each check includes a name, status (either "success", "warning", or "error"), and a human-readable message. For example, cron-count is a check to ensure WP Cron hasn't exploded with jobs:

Want to pipe the results into another system? Use --format=json or --format=csv to render checks in a machine-readable format.

wp doctor is designed for extensibility. Create a custom doctor.yml file to define additional checks you deem necessary for your system:

Then, run the custom doctor.yml file using the --config=<file> parameter:

Running all checks together, wp doctor is the fastest way to get a high-level overview to the health of your WordPress installs.

Using

This package implements the following commands:

wp doctor

Diagnose what ails WordPress.

wp doctor

EXAMPLES

# Verify WordPress core is up to date.
$ wp doctor check core-update
+-------------+---------+-----------------------------------------------------------+
| name        | status  | message                                                   |
+-------------+---------+-----------------------------------------------------------+
| core-update | warning | A new major version of WordPress is available for update. |
+-------------+---------+-----------------------------------------------------------+

# List checks to run.
$ wp doctor list
+----------------------------+--------------------------------------------------------------------------------+
| name                       | description                                                                    |
+----------------------------+--------------------------------------------------------------------------------+
| autoload-options-size      | Warns when autoloaded options size exceeds threshold of 900 kb.                |
| constant-savequeries-falsy | Confirms expected state of the SAVEQUERIES constant.                           |
| constant-wp-debug-falsy    | Confirms expected state of the WP_DEBUG constant.                              |
| core-update                | Errors when new WordPress minor release is available; warns for major release. |

wp doctor check

Run a series of checks against WordPress to diagnose issues.

wp doctor check [<checks>...] [--all] [--spotlight] [--config=<file>] [--fields=<fields>] [--format=<format>]

A check is a routine run against some scope of WordPress that reports a 'status' and a 'message'. The status can be 'success', 'warning', or 'error'. The message is a human-readable explanation of the status. If any of the checks fail, then the command will exit with the code 1.

OPTIONS

[<checks>...]
    Names of one or more checks to run.

[--all]
    Run all registered checks.

[--spotlight]
    Focus on warnings and errors; ignore any successful checks.

[--config=<file>]
    Use checks registered in a specific configuration file.

[--fields=<fields>]
    Limit the output to specific fields.

[--format=<format>]
    Render results in a particular format.
    ---
    default: table
    options:
      - table
      - json
      - csv
      - yaml
      - count
    ---

AVAILABLE FIELDS

These fields will be displayed by default for each check:

EXAMPLES

# Verify WordPress core is up to date.
$ wp doctor check core-update
+-------------+---------+-----------------------------------------------------------+
| name        | status  | message                                                   |
+-------------+---------+-----------------------------------------------------------+
| core-update | warning | A new major version of WordPress is available for update. |
+-------------+---------+-----------------------------------------------------------+

# Verify the site is public as expected.
$ wp doctor check option-blog-public
+--------------------+--------+--------------------------------------------+
| name               | status | message                                    |
+--------------------+--------+--------------------------------------------+
| option-blog-public | error  | Site is private but expected to be public. |
+--------------------+--------+--------------------------------------------+

wp doctor list

List all available checks to run.

wp doctor list [--config=<file>] [--fields=<fields>] [--format=<format>]

OPTIONS

[--config=<file>]
    Use checks registered in a specific configuration file.

[--fields=<fields>]
    Limit the output to specific fields.

[--format=<format>]
    Render output in a specific format.
    ---
    default: table
    options:
      - table
      - json
      - csv
      - count
    ---

AVAILABLE FIELDS

These fields will be displayed by default for each check:

EXAMPLES

# List checks to run.
$ wp doctor list
+----------------------------+--------------------------------------------------------------------------------+
| name                       | description                                                                    |
+----------------------------+--------------------------------------------------------------------------------+
| autoload-options-size      | Warns when autoloaded options size exceeds threshold of 900 kb.                |
| constant-savequeries-falsy | Confirms expected state of the SAVEQUERIES constant.                           |
| constant-wp-debug-falsy    | Confirms expected state of the WP_DEBUG constant.                              |
| core-update                | Errors when new WordPress minor release is available; warns for major release. |

Installing

Installing this package requires WP-CLI v2.1 or greater. Update to the latest stable release with wp cli update.

Once you've done so, you can install the latest stable version of this package with:

To install the latest development version of this package, use the following command instead:

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

For a more thorough introduction, check out WP-CLI's guide to contributing. This package follows those policy and guidelines.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed.

Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue. Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, review our bug report documentation.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience. See "Setting up" for details specific to working on this package locally.

This README.md is generated dynamically from the project's codebase using wp scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.


All versions of doctor-command with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
wp-cli/checksum-command Version ^2
wp-cli/core-command Version ^2
wp-cli/cron-command Version ^2
wp-cli/entity-command Version ^2
wp-cli/extension-command Version ^2
wp-cli/language-command Version ^2
wp-cli/wp-cli Version ^2.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wp-cli/doctor-command contains the following files

Loading the files please wait ....