# Git.php **Repository Path**: vcs-all-in-one/Git.php ## Basic Information - **Project Name**: Git.php - **Description**: A PHP git library - **Primary Language**: PHP - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 0 - **Created**: 2020-06-15 - **Last Updated**: 2025-05-06 ## Categories & Tags **Categories**: vcs **Tags**: None ## README # Git.php ## Description A PHP git repository control library. Allows the running of any git command from a PHP class. Runs git commands using `proc_open`, not `exec` or the type, therefore it can run in PHP safe mode. ## Requirements A system with [git](http://git-scm.com/) installed ## Basic Use ```php require_once('Git.php'); $repo = Git::open('/path/to/repo'); // -or- Git::create('/path/to/repo') $repo->add('.'); $repo->commit('Some commit message'); $repo->push('origin', 'master'); ``` --- Like my work? [![ko-fi](https://www.ko-fi.com/img/donate_sm.png)](https://ko-fi.com/U7U8MIC8)