PHPackages                             biurad/git-scm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. biurad/git-scm

ActiveLibrary

biurad/git-scm
==============

Library for working with Git repository &amp; Git services in PHP.

069PHP

Since Feb 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/biurad/php-git-scm)[ Packagist](https://packagist.org/packages/biurad/git-scm)[ RSS](/packages/biurad-git-scm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

The Poakium Git-SCM
===================

[](#the-poakium-git-scm)

[![Latest Version](https://camo.githubusercontent.com/b8bcc2494ce6ae1389eb7e29f177bf33df40207f10b1e77f3bf729d1caace509/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6269757261642f6769742d73636d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/biurad/git-scm)[![Software License](https://camo.githubusercontent.com/d8c1f1b4c1b899449e9539d4de1ca66abde4c190f41ce41e7abc3330da5cad2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4253442d2d332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Code Maintainability](https://camo.githubusercontent.com/a3aeda61b8bf718d3e0688141e350cd52badcc9f56ad18759fb6a84a0f90adc8/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6269757261642f7068702d6769742d73636d3f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/biurad/php-git-scm)[![Coverage Status](https://camo.githubusercontent.com/17e019f3995e6fe783c69aa373e73f31f31d393bb3fb0792d16bbe972482c38f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6269757261642f7068702d6769742d73636d3f7374796c653d666c61742d737175617265)](https://codecov.io/gh/biurad/php-git-scm)[![Quality Score](https://camo.githubusercontent.com/575b982167dcaf29751f38acf5ca354920c26760fe6ea97da7a31f3dce2b59d6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6269757261642f7068702d6769742d73636d2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/biurad/php-git-scm)

---

A lightweight PHP library for working with Git Source Control Management (SCM). It is a simple, easy to use, and powerful tool for managing your Git repositories.

📦 Installation
--------------

[](#-installation)

PHP 8.0 or newer and [GIT](https://git-scm.com) 2.30 or newer are required. The recommended way to install, is by using [Composer](https://getcomposer.org). Simply run:

```
$ composer require biurad/git-scm
```

📍 Quick Start
-------------

[](#-quick-start)

This library is just a simple wrapper for [GIT](https://git-scm.com) shell commands and parses the output so you can use it in your PHP code. The performance is not as good as Git, but it is still fast enough to be used in production.

Here is an example of how to use the library:

```
use Biurad\Git;

$repo = new Git\Repository('/path/to/repository');
$repo->commit(new Git\CommitNew(
    message: new Git\Commit\Message('My commit message'),
    author: $repo->getAuthor()->setDate('Tue, 06 Sep 2022 07:21:10')
)); // Stage all changes and commit them

$repo->getLog()->getCommits(); // Get all commits
$repo->getLastCommit(); // Get the newest commit

$branches = $repo->getBranches(); // Get all branches
$tags = $repo->getTags(); // Gt all tags
```

📓 Documentation
---------------

[](#-documentation)

In-depth documentation on how to use this library can be found at [docs.biurad.com](https://docs.biurad.com/php/git-scm). It is also recommended to browse through unit tests in the [tests](./tests/) directory.

🙌 Sponsors
----------

[](#-sponsors)

If this library made it into your project, or you interested in supporting us, please consider [donating](https://biurad.com/sponsor) to support future development.

👥 Credits &amp; Acknowledgements
--------------------------------

[](#-credits--acknowledgements)

- [Alexandre Salomé](https://github.com/alexandresalome) developed the [gitonomy/gitlib](https://github.com/gitonomy/gitlib) library which inspired this library.
- [Divine Niiquaye Ibok](https://github.com/divineniiquaye) is the author this library.
- [All Contributors](https://github.com/biurad/php-git-scm/contributors) who contributed to this project.

📄 License
---------

[](#-license)

Git SCM is completely free and released under the [BSD 3 License](LICENSE).

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a71bed376af70d8c5eeb12c80cfb4bf428f70e48301fb2bba1d4a87009e20eeb?d=identicon)[divineniiquaye](/maintainers/divineniiquaye)

---

Top Contributors

[![divineniiquaye](https://avatars.githubusercontent.com/u/53147395?v=4)](https://github.com/divineniiquaye "divineniiquaye (66 commits)")

### Embed Badge

![Health badge](/badges/biurad-git-scm/health.svg)

```
[![Health](https://phpackages.com/badges/biurad-git-scm/health.svg)](https://phpackages.com/packages/biurad-git-scm)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
