You can use phpcs via the command line in the format below, the command phpcs followed by the coding standard followed by the target file phpcs -standard=WordPress testfile.phpīut much better to set up in a code editor like Visual Studio Code. Output should now include the 4 WordPress code standrds… The installed coding standards are MySource, PEAR, PHPCS, PSR1, PSR2, Squiz, Zend, WordPress, WordPress-Core, WordPress-Docs, WordPress-Extra and WordPress-VIP Now check what standards PHPCS can use… phpcs -i Open your Terminal application, you can pretty much run this from any location that you have permissions to read and write, your home or project directory will be ideal… php -r 'copy('', 'composer-setup.php') '
Its perfect for the designer looking for creative freedom and wants to impress.
Here is a guide on how to get WordPress code standards using PHPCodesniffer on Visual Studio Code text editor using the WordPress code standards, this will be done via adding PHPCodesniffer via Composer, you can also add PHPCodesniffer via Pear or Homebrew, I used to have it running via Pear but have found it to be not as reliable Install Composer Take your designs out of the box with Showits drag & drop website builder.