Automating code quality check using GrumPHP in Magento 2

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • 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.

  • PHP Code Sniffer

    PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

    suppose we miss a space at the end of the file, and phpcs fails while running the automated pipelines on pull request merge.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • GrumPHP

    A PHP code-quality tool

    grumphp can be configured to listen to git commit commands and will not allow until all quality checks passed.

  • magento-coding-standard

    Magento Coding Standard

  • PHP CS Fixer

    A tool to automatically fix PHP Coding Standards issues

    PHPCS Fixer 2

  • PHPStan

    PHP Static Analysis Tool - discover bugs in your code without running it!

  • grumphp-swagger

    GrumPHP Swagger check

    You can check out a small task created by me to validate swagger documentation before every commit.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • PHP-Parallel-Lint

    This tool check syntax of PHP files faster than serial check with fancier output.

    #### PHPLint

  • magento2-grumphp

    Ultimate GrumPHP configuration for Magento 2 automated code quality checks

    Create a grumphp.yml file in magento-2-root and copy all content as below code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts