Using PHP Code Sniffer with WordPress Coding Standards

preview_player
Показать описание
Learn to use PHP Code Sniffer and Formatter with WordPress Coding Standards aka WPCS. We will try it first with PHP Storm by Jetbrains and then in Visual Studio Code. If you are struggling to set it up, this video goes in length to show you how to do it for all of your projects.

Composer PHP Code Sniffer -

Composer WordPress Coding Standards

Composer Automatic PHPCS Standards Installer -

Bash config for making composer global bins available in the terminal -
export PATH="$PATH:$HOME/.composer/vendor/bin"

PHPCS Extension for Visual Studio Code -

PHPCBF Extension for Visual Studio Code -

=== Timestamps ===
00:00 - Intro
01:10 - Installing PHP Code Sniffer (PHPCS) and PHP Code Beautifier and Formatter (PHPCBF)
04:05 - Installing WordPress Coding Standards (WPCS)
04:34 - Automatic PHPCS Standard Installer
05:46 - Configuring PHP Coding Standards and PHP CBF in PHPStorm
11:30 - Configuring PHP Coding Standards and PHP CBF in VS Code
16:00 - Final Remarks

=== Music Credits ===

"Nikos Spiliotis - Helen 2" is under a Free To Use on YouTube license

=== Related Keywords ===

Install WordPress Coding Standards
PHP Code Sniffer Standards
PHPCS and WPCS
Using WordPress Coding Standards
PHP Storm and PHP CS
Build a WordPress Plugin
WordPress Plugin Development
Create WordPress Plugins
Create WordPress Theme
WordPress development
PHP Development
Рекомендации по теме
Комментарии
Автор

Hi guys, I hope you're enjoying this video and I appreciate any response/feedback on this 🙌
Please know that a simple Subscribe/Like from you goes a long way for me, so if you could just hit the subscribe button it would mean the world to me ❤

SmallTownDev
Автор

Subscribed, you explained everything perfectly, thank you!

ticotraveller
Автор

How can i use this with VSCODE editor?

phoolchandprajapat-ll
join shbcf.ru