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

Product Decisions This Supports

  • Feature/quality gate decision: Use it as a low-cost developer-experience tool to enforce pre-commit checks in PHP projects—linting, static analysis, coding standards, or fast tests—before code reaches review or CI.
  • Build vs. buy: Avoid building a custom Git-hook runner for simple PHP workflows; this package can standardize hook installation and configuration quickly. However, treat adoption as tactical, not strategic, because the last release was in 2018.
  • Roadmap prioritization: Supports a short, time-boxed engineering-improvement initiative rather than a major product roadmap bet. It can reduce review churn and catch trivial defects earlier.
  • Standardization and onboarding: Helps make local quality checks consistent across developers, especially in smaller or legacy PHP codebases where contributors already use Composer and Git.
  • Risk/exit planning: The PM decision should include an explicit exit path: pin the dependency, limit it to dev tooling, document fallback alternatives, and avoid coupling critical workflows to an unmaintained package.

When to Consider This Package

Consider it when:

  • The product is a PHP project using Composer and Git and the team wants simple, local pre-commit hooks.
  • The need is developer tooling only, not production runtime behavior.
  • The team needs a quick, permissively licensed (MIT), low-integration-effort way to run checks before commits.
  • The project can pin the package version, accept that it is dormant, and validate compatibility with the current PHP/Git environment.
  • Hooks are simple and fast; the team can fall back to CI if local hooks are bypassed or unavailable.

Look elsewhere when:

  • The organization requires actively maintained dependencies, security patching, or vendor support.
  • The project needs complex hook orchestration, monorepo support, cross-platform reliability, or modern PHP-version guarantees.
  • The team already uses or can adopt a maintained alternative such as GrumPHP, CaptainHook, lefthook, or another pre-commit framework.
  • The hooks would become a critical enforcement layer for releases, security checks, or compliance workflows.

How to Pitch It (Stakeholders)

For executives: This is a small, permissive-license developer-productivity package that can catch code-quality issues before they reach CI or code review. It is not a strategic platform dependency and should be adopted only as a time-boxed, dev-only improvement. The main risk is that the package has not been released since 2018, so we should pin it, validate compatibility, and avoid relying on it for critical controls.

For engineering: The package provides Git hooks for PHP projects and can standardize local checks with low setup effort. Pilot it in one repository, pin the version, measure hook speed and developer friction, and confirm PHP/Git compatibility. If maintenance or compatibility becomes a concern, replace it with a maintained hook runner rather than forking unless the workflow is simple and stable.

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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package