All Projects → unfulvio → Wp Php Console

unfulvio / Wp Php Console

Licence: gpl-3.0
📟 Implementation of PHP Console for WordPress.

Projects that are alternatives of or similar to Wp Php Console

Composify
Turn WordPress plugin zip files into git repositories, so that composer version constraints work properly.
Stars: ✭ 36 (-60.44%)
Mutual labels:  wordpress-development
Wordpress Simple Bootstrap
A clean base theme to use Twitter Boostrap 4 with Wordpress
Stars: ✭ 59 (-35.16%)
Mutual labels:  wordpress-development
Go Stare
A fast & light web screenshot without headless browser but Chrome DevTools Protocol!
Stars: ✭ 87 (-4.4%)
Mutual labels:  chrome-devtools
Chrome Devtools Autosave
Auto-saving CSS and JavaScript changes from the Chrome Developer Tools
Stars: ✭ 1,032 (+1034.07%)
Mutual labels:  chrome-devtools
Crawlergo
A powerful dynamic crawler for web vulnerability scanners
Stars: ✭ 1,088 (+1095.6%)
Mutual labels:  chrome-devtools
Wpintel
Chrome extension designed for WordPress Vulnerability Scanning and information gathering!
Stars: ✭ 70 (-23.08%)
Mutual labels:  wordpress-development
Cljs Devtools
A collection of Chrome DevTools enhancements for ClojureScript developers
Stars: ✭ 969 (+964.84%)
Mutual labels:  chrome-devtools
Imposter Plugin
Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.
Stars: ✭ 90 (-1.1%)
Mutual labels:  wordpress-development
Assely
Assely introduces some standarized and comfortable ways for creating WordPress powered applications.
Stars: ✭ 59 (-35.16%)
Mutual labels:  wordpress-development
Instantwp
InstantWP is a complete standalone, portable WordPress development environment.
Stars: ✭ 83 (-8.79%)
Mutual labels:  wordpress-development
Meta Box
The best plugin for WordPress custom fields and custom meta boxes
Stars: ✭ 1,039 (+1041.76%)
Mutual labels:  wordpress-development
Framework
Assely is a PHP framework which brings a little joy to the WordPress development. Develop structured, easily scalable and complex WordPress websites and web applications with true pleasure.
Stars: ✭ 53 (-41.76%)
Mutual labels:  wordpress-development
Updevtools
UpDevTools - A suite of developer tools for your WordPress development environment
Stars: ✭ 74 (-18.68%)
Mutual labels:  wordpress-development
V8 Javascript Memory
V8 JavaScript 内存占用分析
Stars: ✭ 46 (-49.45%)
Mutual labels:  chrome-devtools
Wp Functions List
This is a list of all WordPress functions from version 0 to version 4.8.1 along with the data of when they were first introduced and if they are deprecated or not
Stars: ✭ 88 (-3.3%)
Mutual labels:  wordpress-development
Ec Devtools
ec-devtools是支持canvas库 ( easycanvas , https://github.com/chenzhuo1992/easycanvas ) 的chrome调试工具,能对canvas的元素的样式、物理属性等进行修改,达到所见即所得的效果,提高调试效率
Stars: ✭ 35 (-61.54%)
Mutual labels:  chrome-devtools
Artemis Dev Tool
An Apollo GraphQL Query Schema Testing Tool
Stars: ✭ 66 (-27.47%)
Mutual labels:  chrome-devtools
React Perftool
A browser developer tool extension, which will help you to inspect the performance of React Js components.
Stars: ✭ 90 (-1.1%)
Mutual labels:  chrome-devtools
Tj
Create local WordPress dev sites, manage existing sites, and deploy them, all from the command line.
Stars: ✭ 88 (-3.3%)
Mutual labels:  wordpress-development
Theme
Tonik is a WordPress Starter Theme which aims to modernize, organize and enhance some aspects of WordPress theme development.
Stars: ✭ 1,197 (+1215.38%)
Mutual labels:  wordpress-development

WP PHP Console

GitHub version Scrutinizer Code Quality

An implementation of PHP Console as a WordPress plugin. Use Chrome Dev Tools to debug your WordPress installation!

Description

PHP Console allows you to handle PHP errors & exceptions, dump variables, execute PHP code remotely and many other things using Google Chrome extension PHP Console and PHP Console server library.

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

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 from the Chrome WebStore. 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.

  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.

  1. Activate the plugin through the Plugins admin page in WordPress

  2. 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

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

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

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

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

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

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 & options form.

After entering the correct password, you can use the Eval Terminal in the PHP Console eval & 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 & 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].