Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpspec Phpcq Plugin Laravel Package

netzmacht/phpspec-phpcq-plugin

PHPSpec plugin for the PHP Coding Quality (phpcq) toolchain. Integrates phpspec runs into phpcq pipelines, enabling automated specification testing as part of your QA checks, reporting, and CI workflows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Quality Assurance (QA) Automation: Integrates PHP static analysis (PHP_CQ) into the PHPSpec testing workflow, enabling automated code quality checks during behavior-driven development (BDD). This reduces manual review cycles and enforces coding standards early in the SDLC.
  • Developer Productivity: Streamlines the testing process by combining specification testing (PHPSpec) with static analysis, reducing context-switching between tools and improving feedback loops.
  • Technical Debt Mitigation: Proactively identifies code smells, violations, or inconsistencies during the development phase, aligning with long-term maintainability goals.
  • Build vs. Buy Decision: Justifies in-house tooling investments by offering a lightweight, open-source alternative to commercial static analysis or QA suites (e.g., SonarQube, PHPStan).
  • Roadmap Alignment: Supports initiatives like "shift-left testing" or "developer self-service QA" by embedding checks into the existing PHPSpec workflow (a tool many teams already use).

When to Consider This Package

  • Adopt if:
    • Your team uses PHPSpec for BDD and wants to integrate static analysis without switching tools.
    • You prioritize early-stage code quality (e.g., pre-commit hooks, CI pipelines) and need lightweight, fast feedback.
    • Your project relies on PHP_CQ (or similar static analyzers) but lacks native PHPSpec integration.
    • You’re building a PHP-centric product where developer experience (DX) and automation are key differentiators.
  • Look elsewhere if:
    • Your team uses alternative testing frameworks (e.g., PHPUnit, Pest) and lacks PHPSpec adoption.
    • You need advanced static analysis (e.g., deep security scanning, dependency tracking) beyond PHP_CQ’s scope.
    • Your stack includes non-PHP languages or requires multi-language QA tooling (e.g., SonarQube).
    • You lack developer buy-in for additional tooling in the workflow (may increase cognitive load).

How to Pitch It (Stakeholders)

For Executives: "This plugin bridges our existing PHPSpec tests with automated code quality checks, reducing manual reviews and catching issues earlier—like a ‘linter for behavior specs.’ It’s a low-cost way to embed QA into our dev workflow, cutting rework time and aligning with our tech debt reduction goals. Since it’s open-source and PHP-native, it integrates seamlessly with our stack without vendor lock-in."

For Engineering: "If we’re already using PHPSpec, this adds PHP_CQ checks with zero setup overhead. It runs during your existing test suite, flags violations in familiar output, and helps us fail fast on code smells. Think of it as ‘PHPStan for BDD’—lightweight, actionable, and developer-friendly. We can gate it behind a feature flag to test adoption first."

For Developers: "No more waiting for PR reviews to catch basic issues—this plugin runs PHP_CQ checks alongside your PHPSpec tests. If your spec passes but your code has a smell (e.g., unused vars, complexity), it’ll tell you right there. It’s like having a rubber duck in your IDE, but automated."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor