directorytree/git
Lightweight PHP wrapper for running Git commands on a server. Supports pull, fetch, reset (hard/soft), and remote management (get/get all/add/set URL). Requires PHP 7.3+ and a working directory set to your repo via chdir().
pull, fetch, reset, tag management) directly into PHP applications, reducing reliance on shell scripts or CLI tools. Ideal for:
/deploy/pull).TitasGailius/terminal integration).league/git-php or CLI tools.For Executives: "This package lets us automate Git tasks (like pulls, resets, or tag management) directly from our PHP apps—no more manual CLI work or fragile shell scripts. It’s lightweight, secure, and integrates with our existing Laravel stack. For example, we could auto-pull updates in staging or roll back deployments programmatically, reducing downtime and developer toil. MIT-licensed and actively maintained, it’s a low-risk way to add Git automation to our toolchain."
For Engineering:
*"This is a clean, dependency-injected wrapper for Git commands using titasgailius/terminal, which means:
$git->pull('main') or $git->getTags() replace verbose shell logic.deploy.sh script with a Laravel Artisan command using this package. Tradeoff: Limited to basic Git ops (no submodules), but covers 80% of our needs."*How can I help you explore Laravel packages today?