Best way to check custom coding conventions

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • PHP Code Sniffer

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

  • Any number of static analysis tools can enforce style. I happen to like PHP_CodeSniffer.

  • core

  • If those rules make sense in the framework/project you use then I feel the framework/project you use should warn you about violations while in debugging mode. You can implement this with static code analysis (in your front controller). You may get some inspiration from how I did it here: https://github.com/mintyphp/core/blob/main/src/Analyzer.php

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • PHP Architecture Tester

    PHP Architecture Tester - Easy to use architectural testing tool for PHP :heavy_check_mark:

  • Static analysis tools like PHPStan and Psalm will do this. PHP Architecture Tester, an extension for PHPStan, will make writing these rules much easier: https://github.com/carlosas/phpat

  • laralint

    Framework for linting Laravel projects

  • If you use Laravel, you may want to check out laralint

  • Deptrac

    Keep your architecture clean.

  • How about https://qossmic.github.io/deptrac/ ?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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