Tag

PHP_CodeSniffer

0 views collected around this technical thread.

360 Quality & Efficiency
360 Quality & Efficiency
Jul 3, 2020 · Backend Development

Understanding PHP_CodeSniffer: Tokenization, Lexical Analysis, and Custom Rule Creation

This article explains how PHP_CodeSniffer parses PHP source code into tokens using lexical analysis, demonstrates token extraction with token_get_all, and guides readers through creating a custom rule to prohibit hash‑style comments, covering rule library setup, Sniff implementation, and execution.

Custom RulesPHPPHP_CodeSniffer
0 likes · 12 min read
Understanding PHP_CodeSniffer: Tokenization, Lexical Analysis, and Custom Rule Creation
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
May 29, 2018 · Backend Development

Boost PHP Code Quality: Essential Tools and Automated Testing Setup

Learn how to dramatically improve PHP code quality by setting up automated testing, static analysis, code style enforcement, duplicate detection, and advanced analysis tools using Composer, PHING, PHP_CodeSniffer, PHPCPD, and Phan, with step‑by‑step configuration examples and sample outputs.

PHINGPHPPHPCPD
0 likes · 8 min read
Boost PHP Code Quality: Essential Tools and Automated Testing Setup