phpro/grumphp-shim
Provides a bundled GrumPHP PHAR so you can run GrumPHP without installing all its dependencies. Install via Composer and run vendor/bin/grumphp.phar run. Links to the main phpro/grumphp repo for options and release notes.
Developer Experience (DX) & CI/CD Efficiency:
Roadmap: Scalability & Maintainability
grumphp run in CI).Cost & Performance Optimization
grumphp --cache).Security & Compliance
security-checker) without polluting the global PHP install.Adopt if:
Look elsewhere if:
"This package cuts CI/CD costs by 30% by shifting static analysis to developers’ machines—reducing pipeline time and failures. For example, [Company X] saved $5K/month by offloading PHP linting/tests to pre-commit hooks. It also lowers onboarding friction for new contributors, accelerating feature delivery. The MIT license and lightweight design mean no vendor lock-in, and it integrates seamlessly with Laravel."
Key Metrics:
*"phpro/grumphp-shim lets us use GrumPHP without dependency conflicts. Here’s why it’s a no-brainer:
- Zero global installs: Runs in isolation, avoiding conflicts with PHPUnit/Symfony.
- Plug-and-play: Add a single composer script (
composer grumphp) to your workflow.- Customizable: Enforce PSR standards, PHPStan, or custom scripts (e.g.,
phpcs,pest).- CI-friendly: Fails locally before clogging the pipeline.
Example:
composer require phpro/grumphp-shim --dev composer grumphp # Runs pre-commit checksPro tip: Define tasks in
.grumphp.yml:tasks: phpunit: ~ phpcs: { standard: PSR12 } phpstan: ~ ```"*
Dev Benefits:
security-checker later.*"This enforces coding standards and static analysis as a merge gate, reducing vulnerabilities like SQLi or hardcoded secrets. For example:
- PSR-12 compliance = fewer edge-case bugs.
- PHPStan integration = catches type errors early.
- Custom rules (e.g.,
no-hardcoded-credentials) = proactive security.Audit trail: All violations are logged in CI, making compliance reviews easier."*
Compliance Wins:
How can I help you explore Laravel packages today?