Working with PHP

Last Updated on February 20, 2018 by Neil Murray

PHP Linting

We plan to use phpcs (PHP_CodeSniffer) with the WordPress Coding Standards ruleset to run automated checks against all PHP code in this project. This ensures that we are consistent with WordPress PHP coding standards.

When making any changes to the PHP code in this project, it's recommended to install and run phpcs on your computer.

The easiest way to do this is using composerInstall composer on your computer, then run composer install. This will install phpcs and WordPress-Coding-Standards.

To run via vendor/bin/phpcs use …

PHP Console

PHP Console – Display PHP errors & vars dumps in Google Chrome console and notification popups, execute PHP code remotely.
Handle PHP errors/exceptions, dump PHP vars, execute PHP code remotely and do other cool things using this extension and it's server side PHP library

https://github.com/barbushin/php-console