Search by

particle-academy / fancy-git

wishborn

Framework-agnostic Git toolkit and normalized provider contracts for PHP.

Package info

github.com/Particle-Academy/fancy-git-php

pkg:composer/particle-academy/fancy-git

Statistics

Installs: 1 079

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v0.4.0 2026-11-03 15:49 UTC

This package is auto-updated.

Last update: 2026-11-03 15:56:28 UTC


README

Fancified

Framework-agnostic local Git operations and normalized provider contracts.

use FancyGit\GitRepository;

$repository = new GitRepository(getcwd());
$status = $repository->status();

The core runs the git it finds on an absolute PATH entry, once per process. The current directory and the repository are never searched, and a batch-file git is not run: if nothing else is on PATH you get a GitException with code NotFound. It uses Symfony Process on POSIX and starts the program directly with proc_open on Windows, so no cmd.exe is involved. To use a particular git, give GitRepository your own ProcessRunner, or call SymfonyProcessRunner::run() with an absolute path. GitHub, GitLab, and Bitbucket clients live in separate adapter packages.