Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Static Analysis & Code Quality
  3. phpqa - jmolivas

phpqa - jmolivas

MITPHP0.5.0

A CLI tool that unifies multiple PHP quality assurance and static analysis tools under a single command interface.

GitHubGitHub
325 stars29 forks0 contributors

What is phpqa - jmolivas?

PHPQA is a command-line tool that acts as a unified interface for running multiple PHP quality assurance and static analysis tools. It simplifies the process of checking code syntax, enforcing coding standards, detecting dead code, and running tests by providing a single command to execute various analyzers. The tool solves the problem of dealing with different argument formats and configurations across individual PHP QA tools.

Target Audience

PHP developers and teams who want to integrate multiple code quality checks into their development workflow, especially those working on PHP, Symfony, or Drupal projects and using pre-commit hooks.

Value Proposition

Developers choose PHPQA because it eliminates the need to learn and remember the specific CLI syntax for each QA tool, provides project-specific configuration templates, and enables easy integration into Git hooks for automated code analysis.

Overview

PHPQA all-in-one Analyzer CLI tool

Use Cases

Best For

  • Enforcing coding standards across PHP projects using PHP-CS-Fixer and PHP_CodeSniffer
  • Setting up pre-commit Git hooks to automatically analyze staged PHP files
  • Running multiple static analysis tools with a single command in CI/CD pipelines
  • Quickly measuring project metrics like code size and structure with PHPLOC
  • Detecting code issues like copy-paste duplication and dead code in PHP applications
  • Standardizing QA workflows across teams working on Symfony or Drupal projects

Not Ideal For

  • Teams that rely heavily on GUI-based code analysis tools or IDE integrations for real-time feedback
  • Projects using only one specific QA tool where the native CLI or configuration is preferred for finer control
  • Environments with strict dependency management that may conflict with PHPQA's bundled analyzers or require minimal tooling
  • Non-PHP language projects, as PHPQA is exclusively designed for PHP ecosystems like Symfony and Drupal

Pros & Cons

Pros

Unified Command Interface

PHPQA standardizes the different argument formats of tools like PHP-CS-Fixer and PHP_CodeSniffer into a single 'phpqa analyze' command, eliminating the need to memorize multiple CLI syntaxes as described in the overview.

Centralized YAML Configuration

Enables easy management of analyzer settings through a 'phpqa.yml' file, allowing users to enable, disable, or customize behaviors without editing individual tool configurations.

Git Pre-commit Integration

With the '--git' option, it analyzes only staged files, making it seamless to set up automated quality checks in pre-commit hooks, as highlighted in the usage section.

Project-Specific Templates

Includes built-in configuration templates for PHP, Symfony, and Drupal projects, reducing setup time for common frameworks when running 'phpqa init'.

Cons

Manual Installation Overhead

Requires cloning the repository, running composer install, and creating a symlink, which is more complex than installing via Composer globally and may pose issues on systems without proper permissions.

Incomplete Feature Set

The README admits it's a work-in-progress with poor documentation and test coverage, and lacks integration with popular analyzers like PDepend or security-checker listed in 'Nice to have features'.

Potential Tool Bloat

Bundles multiple analyzers by default, which can lead to redundancy or version conflicts if projects already have these tools configured separately, adding unnecessary overhead.

Frequently Asked Questions

Quick Stats

Stars325
Forks29
Contributors0
Open Issues4
Last commit8 years ago
CreatedSince 2015

Tags

#pre-commit-hooks#analyzer#development-workflow#linter#cli-tool#code-quality#php-codesniffer#qa-automation#php#code-analysis#static-analysis

Built With

C
Composer
P
PHP

Included in

Static Analysis & Code Quality14.5k
Auto-fetched 3 hours ago

Related Projects

PHP ParserPHP Parser

A PHP parser written in PHP

Stars17,430
Forks1,122
Last commit2 months ago
TypeScript ESLintTypeScript ESLint

:sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript

Stars16,245
Forks2,905
Last commit7 hours ago
pyrightpyright

Static Type Checker for Python

Stars15,436
Forks1,784
Last commit4 days ago
ReviewdogReviewdog

🐶 Automated code review tool integrated with any code analysis tools regardless of programming language

Stars9,302
Forks488
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub