cypresslab/gitelephant
GitElephant is a PHP OOP wrapper around the git CLI for managing repositories: inspect commits, branches, tags, diffs, logs, and statuses, and run common git operations via a clean API. Supports git >=1.8, PHP >=7.2 (older PHP via prior versions).
git CLI or REST APIs (e.g., GitHub/GitLab APIs).libgit2) or CLI tools are preferred.git pull/git push) where CLI or HTTP APIs suffice.For Executives: "GitElephant lets us automate Git workflows directly in PHP—think of it as ‘GitHub Actions, but self-hosted and PHP-native.’ This reduces dependency on external APIs, speeds up internal tooling (e.g., CI/CD, code reviews), and future-proofs our Git operations. For example, we could auto-enforce commit message standards or trigger builds on specific branches—all without writing shell scripts or calling GitHub’s API. Low risk (LGPL-3.0), high reward for dev productivity."
For Engineering:
*"This package abstracts Git operations into PHP methods (e.g., commit(), merge(), getBranches()), so we can:
How can I help you explore Laravel packages today?