Weave 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

Php Git Hooks Laravel Package

bruli/php-git-hooks

bruli/php-git-hooks lets PHP projects configure and manage Git hooks in PHP. Define pre-commit, pre-push, and other hooks to automatically run linters, tests, and custom checks before commits or pushes, helping catch issues early.

Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: Best treated as a developer-workflow dependency, not application architecture. It can standardize Git hooks for Laravel/PHP repos so pre-commit/pre-push checks run Composer scripts such as Pint, PHPStan/Larastan, PHPUnit/Pest, and asset/lint checks. Fit is strongest in Composer-based PHP teams already using Laravel conventions.
  • Integration feasibility: MIT license and Composer distribution make initial evaluation low-friction. However, the last release is 2018-10-23, so feasibility depends on whether it installs cleanly under current PHP, Laravel, Composer 2, and CI environments. Treat it as a thin hook orchestrator rather than a strategic platform dependency.
  • Technical risk: High abandonment risk. Missing modern PHP constraints, Composer plugin allow-listing, security policy, and active maintainer support may block adoption or create long-term fork ownership. Other risks include developer bypass via --no-verify, inconsistent local Git versions, Windows/WSL differences, worktrees, monorepos, and CI environments without a writable .git directory.
  • Key questions: What is the canonical repository and maintainer status? Does it support PHP 8.2/8.3 and Composer 2 plugin permissions? Can hooks call arbitrary Composer scripts cleanly? Does it work in CI, containers, and non-interactive installs? What is the fallback if installation fails? Who owns a fork or replacement path?

Integration Approach

  • Stack fit: Use as a require-dev workflow tool in Laravel repos, wrapping existing project commands rather than introducing new quality tools. It should complement, not replace, CI checks.
  • Migration path: Start with one representative Laravel service. Pin the package version, verify Composer install behavior, configure a minimal pre-commit hook, and compare results against the existing local checks and CI pipeline. Expand only after the pilot proves stable.
  • Compatibility: Validate against the team’s supported PHP/Laravel matrix, Composer 2 allow-plugins, Docker/devcontainer setups, macOS/Linux/Windows developer environments, and CI installs using --no-dev or --no-scripts. Maintain a documented bypass and rollback command.
  • Sequencing: 1) inventory current hooks and Composer scripts; 2) define the canonical local quality gate; 3) pilot in one repo; 4) document onboarding and failure recovery; 5) roll out to additional repos; 6) keep CI as the authoritative enforcement layer. If compatibility fails, replace with an actively maintained hook manager or a small internal Composer script.

Operational Impact

  • Maintenance: Low code footprint but potentially high ownership burden because the package is effectively unmaintained. Budget for dependency review, PHP/Composer compatibility testing, and a possible fork or replacement.
  • Support: Developers need clear guidance on installation, bypassing hooks for emergencies, and troubleshooting missing hooks. Support load will concentrate on onboarding, environment differences, and false-positive quality failures.
  • Scaling: Works best as a standardized convention across many small Laravel repos, but hook runtime must stay fast. Slow hooks will drive bypass behavior; keep pre-commit checks narrow and push heavier checks to pre-push or CI.
  • Failure modes: Hook not installed after fresh clone, Composer plugin disabled, PHP version mismatch, missing Git binary, CI/non-interactive install failure, hook script drift across repos, and developers routinely using --no-verify. Each needs a documented detection and recovery path.
  • Ramp-up: Moderate. Teams familiar with Composer scripts and Git hooks can adopt quickly; less experienced developers need a short runbook. TPM should define success metrics such as hook installation rate, pre-commit runtime, bypass frequency, and reduction in CI-only failures before scaling.
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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager