{"id":13549034,"url":"https://github.com/unfulvio/wp-php-console","last_synced_at":"2025-12-16T19:03:42.059Z","repository":{"id":22929692,"uuid":"26278792","full_name":"unfulvio/wp-php-console","owner":"unfulvio","description":":pager: Implementation of PHP Console for WordPress.","archived":false,"fork":false,"pushed_at":"2020-11-09T03:35:28.000Z","size":738,"stargazers_count":99,"open_issues_count":5,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-31T09:36:18.063Z","etag":null,"topics":["chrome-dev","chrome-devtools","php","php-console","php-debug","php-development","php-errors","wordpress-development"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/wp-php-console/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unfulvio.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-06T16:26:26.000Z","updated_at":"2025-09-14T12:57:40.000Z","dependencies_parsed_at":"2022-08-23T14:11:24.908Z","dependency_job_id":null,"html_url":"https://github.com/unfulvio/wp-php-console","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/unfulvio/wp-php-console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfulvio%2Fwp-php-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfulvio%2Fwp-php-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfulvio%2Fwp-php-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfulvio%2Fwp-php-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unfulvio","download_url":"https://codeload.github.com/unfulvio/wp-php-console/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfulvio%2Fwp-php-console/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27769802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-dev","chrome-devtools","php","php-console","php-debug","php-development","php-errors","wordpress-development"],"created_at":"2024-08-01T12:01:17.529Z","updated_at":"2025-12-16T19:03:42.018Z","avatar_url":"https://github.com/unfulvio.png","language":"PHP","readme":"# WP PHP Console\n\n[![GitHub version](https://badge.fury.io/gh/unfulvio%2Fwp-php-console.svg)](https://badge.fury.io/gh/unfulvio%2Fwp-php-console)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/unfulvio/wp-php-console/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/unfulvio/wp-php-console/?branch=master)\n\nAn 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!\n\n## Description\n\n\u003e PHP Console allows you to handle PHP errors \u0026 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).\n\nThis 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.\n\n[![Download from WordPress.org](https://github.com/nekojira/wp-php-console/blob/master/assets/wordpress-download-btn.png)](https://wordpress.org/plugins/wp-php-console/)\n\n\n## Installation\n\nNote: you will at least PHP 5.6.0 or above installed on your machine or server to run this plugin.\n\n1. 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).\nMake sure the PHP Console Chrome extension is enabled through [chrome://extensions/](chrome://extensions/ \"chrome://extensions/\").\n\n    **Important Note**\n\n    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).\n\n2. Then, add this plugin to your WordPress installation either by:\n\n  - Installing it as any other WordPress plugin from your WordPress admin Plugins page (`Add New`).\n\n  - Downloading a copy from [WordPress.org]((https://wordpress.org/plugins/wp-php-console/)) 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.\n\n  - **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.\n\n3. Activate the plugin through the `Plugins` admin page in WordPress\n\n4. In the `Settings` menu go to `WP PHP Console`:\n\n  - Enter a password for the Eval Terminal (this setting is needed or the terminal feature simply won't work).\n\n  - You can also set other options (see inline instructions or read below).\n\n## Options\n\n##### Allow only on SSL\n\u003e 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).\n\n##### Allowed IP Masks\n\u003e 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.\n\n##### Register PC Class\n\u003e 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.\n\n##### Show Call Stack\n\u003e Tick this option to see the call stack when PHP Console server writes to the JavaScript console.\n\n##### Short Path Names\n\u003e 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`\n\n## Usage\n\nAfter 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.\nThe \"key\" icon will change into a \"terminal\" icon, click on it to open the PHP Console eval \u0026 options form.\n\nAfter entering the correct password, you can use the Eval Terminal in the PHP Console eval \u0026 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.\nThe result includes the output, the return value and the net server execution time.\n\nIn 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 \u0026 options form opened from the address bar in your browser.\n\nIn 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.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfulvio%2Fwp-php-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funfulvio%2Fwp-php-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfulvio%2Fwp-php-console/lists"}