PHPackages                             nekojira/wp-php-console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. nekojira/wp-php-console

ActiveWordpress-plugin[CLI &amp; Console](/categories/cli)

nekojira/wp-php-console
=======================

A WordPress implementation of PHP Console.

1.6.0(5y ago)10011015[5 issues](https://github.com/unfulvio/wp-php-console/issues)GPLv3.0+PHP

Since Nov 7Pushed 5y ago5 watchersCompare

[ Source](https://github.com/unfulvio/wp-php-console)[ Packagist](https://packagist.org/packages/nekojira/wp-php-console)[ Docs](https://github.com/unfulvio/wp-php-console)[ RSS](/packages/nekojira-wp-php-console/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (18)Used By (0)

WP PHP Console
==============

[](#wp-php-console)

[![GitHub version](https://camo.githubusercontent.com/8ddf9694b0e8040d46c69abb3acd69876a91774778f8ac9794c7a8a769c9242a/68747470733a2f2f62616467652e667572792e696f2f67682f756e66756c76696f25324677702d7068702d636f6e736f6c652e737667)](https://badge.fury.io/gh/unfulvio%2Fwp-php-console)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bd468e1fb00397dad5517c2a92e357c74e68e0b6c834f19064a46fef1d513063/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f756e66756c76696f2f77702d7068702d636f6e736f6c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/unfulvio/wp-php-console/?branch=master)

An implementation of [PHP Console](https://github.com/barbushin/php-console "PHP Console") as a [WordPress](http://www.wordpress.org) plugin. Use Chrome Dev Tools to debug your WordPress installation!

Description
-----------

[](#description)

> PHP Console allows you to handle PHP errors &amp; exceptions, dump variables, execute PHP code remotely and many other things using [Google Chrome extension PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) and [PHP Console server library](https://github.com/barbushin/php-console).

This implementation of PHP Console is a handy tool to make it easier to test on the fly any WordPress specific function or class (including those introduced by your active theme and plugins!) from a terminal and inspect results, catch errors and warnings with complete call stack trace straight from the Chrome JavaScript console. In other words, besides debugging, you can execute PHP or WordPress-specific PHP code straight from the terminal and print PHP variables in Chrome Dev Tools JavaScript console along with your normal JavaScript debugging and testing. Keep everything in one place, without leaving the browser to check for your logs or writing temporary PHP test code on a PHP file and refresh your browser page.

[![Download from WordPress.org](https://github.com/nekojira/wp-php-console/raw/master/assets/wordpress-download-btn.png)](https://wordpress.org/plugins/wp-php-console/)

Installation
------------

[](#installation)

Note: you will at least PHP 5.6.0 or above installed on your machine or server to run this plugin.

1. First, install [Google Chrome extension PHP Console](https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef) from the [Chrome WebStore](https://chrome.google.com/webstore/search/php%20console?_category=extensions). Make sure the PHP Console Chrome extension is enabled through chrome://extensions/.

    **Important Note**

    If the Google Chrome extension is not available on the Chrome Web Store, you can manually install it [from source](https://github.com/barbushin/php-console-extension).
2. Then, add this plugin to your WordPress installation either by:

- Installing it as any other WordPress plugin from your WordPress admin Plugins page (`Add New`).
- Downloading a copy from WordPress.org and uploading it in `wp-php-console` directory into your `wp-content/plugins/` directory or corresponding plugins directory in your installation. You can also do this from the WordPress plugins installation admim dashboard pages.
- **Note:** If you decide to `git clone` this repository instead, you will need `composer install` to install its dependencies first, or it won't work in WordPress as it is.

3. Activate the plugin through the `Plugins` admin page in WordPress
4. In the `Settings` menu go to `WP PHP Console`:

- Enter a password for the Eval Terminal (this setting is needed or the terminal feature simply won't work).
- You can also set other options (see inline instructions or read below).

Options
-------

[](#options)

##### Allow only on SSL

[](#allow-only-on-ssl)

> Forces PHP Console to connect on a SSL connection only (of course then if you don't actually have SSL (https), PHP Console simply won't work).

##### Allowed IP Masks

[](#allowed-ip-masks)

> You can secure your server by specifying IP addresses to restrict the accessibility from the Eval Terminal (a single address eg. `192.168.0.4` or an address mask eg. `192.168.*.*` or multiple IPs, comma separated `192.168.1.22,192.168.1.24,192.168.3.*`). In case of having issues connecting with the Remote PHP Eval Terminal, try leaving this blank.

##### Register PC Class

[](#register-pc-class)

> Tick this option to register `PC` in the global PHP namespace. This allows to write `PC::debug($var, $tag)` or `PC::magic_tag($var)` instructions in PHP to inspect `$var` in the JavaScript console.

##### Show Call Stack

[](#show-call-stack)

> Tick this option to see the call stack when PHP Console server writes to the JavaScript console.

##### Short Path Names

[](#short-path-names)

> Tick this checkbox to shorten PHP Console error sources and traces paths in the JavaScript console. E.g. paths like `/server/path/to/document/root/WP/wp-admin/admin.php:38` will be displayed as `/WP/wp-admin/admin.php:38`

Usage
-----

[](#usage)

After you entered WP PHP Plugin password, your browser address bar should show a yellow "key" icon, which, if clicked, will prompt for the password you have set earlier. The "key" icon will change into a "terminal" icon, click on it to open the PHP Console eval &amp; options form.

After entering the correct password, you can use the Eval Terminal in the PHP Console eval &amp; options form and run any PHP code from it, including WordPress's own functions: enter one or more lines of PHP code in the black Eval terminal screen, press Ctrl+Enter and see the result in Chrome Dev Tools JavaScript console. The result includes the output, the return value and the net server execution time.

In your PHP code on the Server, you can call PHP Console debug statements like `PC::debug( $var, $tag )` to display PHP variables in the JavaScript console and optionally filter selected tags through the PHP Console eval &amp; options form opened from the address bar in your browser.

In the JavaScript console you will see printed any `PC::debug()` information, PHP errors, warnings, notices with optional stack trace, which will be useful to debug your plugin or theme.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 89.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~137 days

Recently: every ~248 days

Total

17

Last Release

2062d ago

PHP version history (3 changes)1.2.0PHP &gt;=5.3.2

1.3.8PHP &gt;=5.4.0

1.5.3PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/48f2cb4e743490b58576a0672e49cdbacc8850e712ab50cec99d8e0ec3ab1368?d=identicon)[unfulvio](/maintainers/unfulvio)

---

Top Contributors

[![unfulvio](https://avatars.githubusercontent.com/u/1227930?v=4)](https://github.com/unfulvio "unfulvio (165 commits)")[![Polfo](https://avatars.githubusercontent.com/u/10303392?v=4)](https://github.com/Polfo "Polfo (18 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

chrome-devchrome-devtoolsphpphp-consolephp-debugphp-developmentphp-errorswordpress-developmentcliconsolecommand-lineterminalwordpressdebugdebuggingdevelopmentphp-console

### Embed Badge

![Health badge](/badges/nekojira-wp-php-console/health.svg)

```
[![Health](https://phpackages.com/badges/nekojira-wp-php-console/health.svg)](https://phpackages.com/packages/nekojira-wp-php-console)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B13.8k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.7k357.7M11.0k](/packages/nunomaduro-collision)[splitbrain/php-cli

Easy command line scripts for PHP with opt parsing and color output. No dependencies

178866.3k32](/packages/splitbrain-php-cli)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2592.3M13](/packages/nunomaduro-laravel-console-task)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76130.4k1](/packages/rahul900day-laravel-console-spinner)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
