WordPress-Coding-Standards
PHP CS Fixer
WordPress-Coding-Standards | PHP CS Fixer | |
---|---|---|
12 | 41 | |
2,474 | 12,575 | |
0.8% | 0.4% | |
9.1 | 9.8 | |
12 days ago | 1 day ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WordPress-Coding-Standards
-
Docker environment for WordPress development
Is a Docker WordPress Environment focused on the development of WordPress plugins and themes, supports WP-CLI, phpMyAdmin, Xdebug and WordPress Coding Standards - WPCS.
-
Setting WordPress Coding Standards per project using Composer
PHP Code Sniffer helps us to achieve uniformity of code styles, we also can add other standards, like WordPress Coding Standars, some companies define their own standards etc. There are several ways to config that, but in this article, I will manage WordPress Coding Standards through Composer so we can manage these standards per project, using VS Code IDE.
-
Using WooCommerce Payment Plugin?! Heads up! Vulnerability!
WPCS's static code checks don't seem to recognize the vulnerability either, so I opened an issue: https://github.com/WordPress/WordPress-Coding-Standards/issues/2217.
- I’ve developed a plugin. Now what?
- Any risks when using an old theme?
-
Codeable for new wordpress dev
Are you a new developer in general or is WordPress new for you as a developer? In my experience it's best to practise and start with little plugins. Be sure to use a code-sniffer which enforces the WordPress coding standards.
-
Code style checker and reformater
The standard here is probably wpcs (https://github.com/WordPress/WordPress-Coding-Standards) which is a set of rules for the tool phpcs (https://github.com/squizlabs/PHP_CodeSniffer)
-
How to setup Wordpress coding standard rules in VS Code
We use WordPress Coding Standards for PHP_CodeSniffer (WPCS) which uses Squizlabs' PHP codesniffer (phpcs) and beautifier & fixer (phpcbf) under the hood to scan and format the code.
-
Code review, WP plugin
You can also save yourself some time too by making use of the WordPress ruleset for PHPCS. I've integrated this into my code editor so it evaluates my code on-the-fly.
- Finding security vulnerabilities in a WordPress plugin
PHP CS Fixer
-
8 Essential Tools Every PHP Developer Needs
PHP-CS-Fixer automatically fixes PHP coding standard issues, maintaining a clean codebase and adhering to coding standards. It can be integrated into the development workflow to ensure all code complies with defined standards.
-
Avoiding empty() in PHP
friendsofphp/php-cs-fixer
- PHP-CS-Fixer doesn't fix a lot of things?
- Laravel measuring system?
-
PHP in 2023 - stitcher.io
While you're at it, also include code-style checkers like phpcs, phpmd and/or php-cs-fixer
-
Write a PHP library supports PHP 5.6 to 8.1
I run two tools for this - php-cs-fixer on PHP 5.6 and the built-in syntax checker(php -l).
-
Featherweight library to write to slack channel
You can use this library to help automate this: https://github.com/FriendsOfPHP/PHP-CS-Fixer 😊
-
How I was able to install php-cs-fixer. Vscode + Linux machine
To be bit a elaborate and for a proper updated installtion process, here is what I did: I used the [latest versio]n(https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v3.10.0) of php cs fixer then entered the command that followed to install php-cs-fixer.
-
Revisiting GitLab as a PHP Developer
PHP CS Fixer is able to generate a GitLab formatted report which GitLab can use to show you any new violations in the code or even if code style violations have been tackled.
-
7 Laravel Packages to Improve Coding Standards and Reduce Bugs
Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent. Pint is a new addition to the Laravel framework.
What are some alternatives?
wpscan - WPScan WordPress security scanner. Written for security professionals and blog maintainers to test the security of their WordPress websites. Contact us via [email protected]
PHP Code Sniffer - PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
wp2static - WordPress static site generator for security, performance and cost benefits
PHPStan - PHP Static Analysis Tool - discover bugs in your code without running it!
corcel - Use WordPress backend with Laravel or any PHP application
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
VIP-Coding-Standards - PHP_CodeSniffer ruleset to enforce WordPress VIP coding standards.
GrumPHP - A PHP code-quality tool
lokl - Instant WordPress local development for Mac, Win & Linux
PHP-Parallel-Lint - This tool check syntax of PHP files faster than serial check with fancier output.
frontity - » Frontity - The React Framework for WordPress
PHP Mess Detector - PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.