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

Laravel Git State Laravel Package

markwalet/laravel-git-state

Laravel Git State exposes your repository's git information inside your Laravel app, letting you read the current branch, commit hash, tag, and dirty status through a simple API so you can surface version details in dashboards, health checks, or deployment tooling.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature development: Enables product features that require programmatic Git operations inside a Laravel application — automated commits, branch/tag management, repository inspection, content versioning, deployment triggers, and audit trails — without building a custom Git abstraction layer.
  • Roadmap prioritization: The restored FakeGitDriver (v1.11.2) directly de-risks and accelerates any roadmap item involving Git by making those features testable in isolation. Teams can ship Git-dependent capabilities with confidence and without relying on live repositories in CI.
  • Build vs. buy: Strong case for buying/adopting instead of building. The package provides a driver-based Git manager plus a first-class fake driver for testing and non-production environments. Rebuilding this in-house would duplicate driver abstraction, test doubles, and service-provider wiring.
  • Use cases: Local development without real Git remotes, CI pipelines that need deterministic Git behavior, feature tests for deployment/versioning workflows, sandboxed demos, and multi-driver support (e.g., swapping real vs. fake Git backends by environment).

When to Consider This Package

  • You need Laravel-native, programmatic access to Git repositories and want a clean, testable abstraction rather than raw shell commands.
  • You want to write feature/integration tests around Git operations without touching real repositories — the FakeGitDriver is explicitly intended for testing and non-production use.
  • You anticipate supporting multiple Git backends or need to swap implementations between environments (local, CI, production).
  • You value the recent maintenance signal: v1.11.2 restores the fake driver and re-enables coverage in factory, manager, and service-provider tests, indicating active stewardship of the testing story.

Look elsewhere if:

  • You only need one-off shell commands or trivial Git calls; the abstraction may be overkill.
  • You require deep Git plumbing or edge-case behavior that a fake driver cannot faithfully simulate.
  • You are not on Laravel/PHP or need a framework-agnostic Git library.
  • You cannot tolerate the fake driver's limitations for your test scenarios (e.g., complex merge/rebase simulations).

How to Pitch It (Stakeholders)

  • Executives: This package lets us ship Git-dependent features faster and with lower risk. The v1.11.2 release restores a fake Git driver for testing, which means we can validate Git workflows in CI without brittle, slow, or flaky live-repository tests. That reduces engineering overhead and improves release reliability. Adopting it is cheaper and safer than building and maintaining our own Git integration layer.
  • Engineering: The package offers a driver-based Git manager with a restored FakeGitDriver for tests and non-production use. v1.11.2 also re-enables fake-driver coverage across the factory, manager, and service provider, so the testing path is actively maintained. Use it to isolate Git operations in feature tests, avoid real-repo dependencies in CI, and keep Git logic behind a clean abstraction that can be swapped per environment.
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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib