On this page
Coder
Last updated on
9 July 2024
Coder is a tool to help write code for Drupal or its modules. It can detect and automatically fix coding standard errors. The project provides a coding standard for PHP_CodeSniffer based on the Drupal Coding Standard.
Those checks apply to all versions of Drupal, so you can use Coder 8.x-2.x to check Drupal 7 code.
Why?
This sniffer has been created because of the need to run coding standards checks without requiring a full drupal installation. This is great for checking code validation on a standalone server without a drupal site, checking a single file from a code editor (Eclipse, Textmate, etc.), or setting up pre-commit hooks on all files being committed.
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.