Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Coder

247 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!

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
12
Tracked since
Nov 2024
Latest release
2 months ago
Releases (12 mo)
7 ▲ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Core 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
8.3.27 Stable Jan 8, 2025
8.3.26 Stable Nov 29, 2024