pear/versioncontrol_git
PEAR’s VersionControl_Git is a PHP library for interacting with Git repositories from your code. It wraps common git commands (status, log, diff, commit, branch, tag, etc.), supports executing via the Git CLI, and helps automate repository workflows in PHP apps.
This package is archived and no longer actively maintained — proceed with caution in production. For historical or legacy integration purposes, start by installing via Composer (if still available via Packagist or direct repository access). The core class is VersionControl_Git, which requires a path to a Git repository and optionally credentials. Begin by instantiating it with new VersionControl_Git('/path/to/repo'), then explore methods like log(), status(), branch(), or commit() for basic operations. Check docs/ or examples/ in the repository for early usage patterns — but be aware that examples may be outdated.
GitService) to abstract method calls and mitigate future breakage.runCommand() for lower-level control when built-in methods (e.g., fetch(), push(), revParse()) lack required options.getErrors() after operations — many methods return false on failure and populate internal error log instead of throwing exceptions..netrc, or local repository with cached credentials).git binary — ensure it's installed and in $PATH. No fallback for environments without Git CLI.__toString() in objects, strict types, each() usage). Audit code and apply fixes if necessary.symfony/process + direct CLI calls or modern libraries like gitonomy/gitlib (active, PSR-compatible) instead for new projects.How can I help you explore Laravel packages today?