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 355

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v0.4.1 2026-11-03 19:02 UTC

This package is auto-updated.

Last update: 2026-11-19 03:27:18 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.

For agents. This package is listed on the Fancy MCP catalog server at https://ui.particle.academy/mcp (streamable HTTP, no API key; MCP id fancy-ui), with install commands and docs, alongside the rest of the kit. How an agent installs and uses this package is in AGENTS.md.