Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Coder

Security covered Under active development 193 sites

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!

Ask your assistant about Coder

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
21
Tracked since
Feb 2023
Latest release
3 months ago
Releases (12 mo)
7 ▲ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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