Skip to content

Installing PHP, Composer and CodeSniffer

Shiva Poudel edited this page Aug 23, 2019 · 2 revisions

This post will guide you through clean (non-polluting) Windows 10 installations of PHP 7, Composer and PHP CodeSniffer.

  • Download one of the suitable PHP x64 NTS binaries and extract the zip content to C:\Program Files\php-x64
  • Run the Composer Windows installer and make sure it detects your PHP installation before completing the installation.
  • Open a Command Prompt (without admin permissions) and execute the below commands to install PHP CodeSniffer with additional Coding Standards for WPEverest and WooCommerce:
composer config --global repos.packagist composer https://packagist.org
composer global require wpeverest/wpeverest-sniffs
composer global require woocommerce/woocommerce-sniffs
phpcs --version
Clone this wiki locally