Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Coder

313 sites Security covered
View on drupal.org

Coder is a command-line tool designed to check Drupal code against coding standards and best practices. It can automatically fix violations of these standards.

Coder checks your Drupal code against coding standards and other best practices. It can also fix coding standard violations for you with the phpcbf command from PHP_CodeSniffer, see the installation instructions and usage examples. Those checks apply to all versions of Drupal.

Coder is not a module, it is used as command line tool, in IDEs and in automated testing workflows.

Note that Javascript support has been removed. To check and fix Javascript files please use ESLint and see the Drupal ESLint documentation.

Note that CSS support has been removed. To check and fix CSS files please use Stylelint and use the Drupal core .stylelintrc.json configuration file.

Usage

$ phpcs --standard=Drupal example.module 

FILE: /home/klausi/workspace/coder/example.module
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
 1 | ERROR | [ ] Missing file doc comment
 3 | ERROR | [ ] Missing function doc comment
 4 | ERROR | [ ] Opening brace should be on the same line as the declaration
 5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Drupal 8 module upgrading

See https://drupal.org/project/drupalmoduleupgrader

Contributing

Please create an issue fork and merge request on drupal.org.

Thank you!

Activity

Total releases
10
First release
Jan 2025
Latest release
3 weeks ago
Releases (12 mo)
7 ▲ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Release date
9.0.1 Stable Jun 21, 2026
9.0.0 Stable Mar 13, 2026
9.0.0-beta1 Pre-release Dec 11, 2025
9.0.0-alpha2 Pre-release Nov 23, 2025
9.0.0-alpha1 Pre-release Oct 26, 2025
8.3.31 Stable Oct 19, 2025
9.x-dev Dev Oct 18, 2025
8.3.30 Stable May 26, 2025
8.3.29 Stable May 3, 2025
8.3.28 Stable Jan 19, 2025