![]() ![]() Make PHPStorm exe run as administrator.PHPStorm settings – is suggested to work on “default settings” dialog (from File).For Updates you need to download the WORDPRESS STANDARDS from the link above and copy them to CodeSniffer location.Unpack the archive folders: to ~php\PEAR\php\CodeSniffer\src\Standards where ~ means path to PHP.Run command from cmd(see step 3-C-i and 3-C-ii) pear install PHP_CodeSniffer from PHP -> PEAR folder.Follow on screen details and complete installation. ![]() Open Explorer -> go to PHP location -> SHIFT RIGHT CLICK there and open SHELL.RUN -> write cmd -> CD into your php server folder.Add System Environment variable: with link to PHP.exe from BIN folder.To check if PHP_CodeSniffer is installer run this command in CMD: phpcs -i.XAMPP ship with PEAR and PHP_CodeSniffer you can skip steps 2.Run this command: composer global update “squizlabs/php_codesniffer” So here’s a small contribution for those who need to check their code on Windows: #Phpstorm 64 bit windows how to#There are many great tutorials on how to install PHP Code Sniffer with PHPStorm on Mac, but we did not find any article explaining how to install and configure these tools on Windows. ![]() PHP Code Sniffer together with PHPStorm editor is a great and powerful combination as you get all these code checks in real time, as you type your code. If you are concerned about delivering high-quality code, compliant with WordPress coding standards, you’d better use an automated tool for these checks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |