PHPackages                             basteyy/git-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. basteyy/git-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

basteyy/git-php
===============

A PHP library for interacting with the Git CLI

0.2.1(2y ago)0205MITPHPPHP ^8.1 | ^8.2 | ^8.3

Since Jun 18Pushed 2y agoCompare

[ Source](https://github.com/basteyy/git-php)[ Packagist](https://packagist.org/packages/basteyy/git-php)[ Fund](https://ko-fi.com/jbrumond)[ RSS](/packages/basteyy-git-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

git-php
=======

[](#git-php)

`basteyy/git-php` is a fork of `kbjr/Git.php` from James Brumond. See the original github page:

Description
-----------

[](#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
------------

[](#requirements)

A system with [git](http://git-scm.com/) installed

Install
-------

[](#install)

Use composer tp install the package:

```
composer require basteyy/git-php
```

Basic Use
---------

[](#basic-use)

```
require dirname(__DIR__) . '/vendor/autoload.php';

use Kbjr\Git\Git;

$repo = Git::open('/path/to/repo');  // -or- Git::create('/path/to/repo')

$repo->add('.');
$repo->commit('Some commit message');
$repo->push('origin', 'master');
```

---

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.4% 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.

###  Release Activity

Cadence

Every ~293 days

Total

4

Last Release

917d ago

### Community

Maintainers

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

---

Top Contributors

[![kbjr](https://avatars.githubusercontent.com/u/195127?v=4)](https://github.com/kbjr "kbjr (56 commits)")[![basteyy](https://avatars.githubusercontent.com/u/2758879?v=4)](https://github.com/basteyy "basteyy (10 commits)")[![adrorocker](https://avatars.githubusercontent.com/u/1872940?v=4)](https://github.com/adrorocker "adrorocker (6 commits)")[![mAAdhaTTah](https://avatars.githubusercontent.com/u/4371429?v=4)](https://github.com/mAAdhaTTah "mAAdhaTTah (4 commits)")[![uuf6429](https://avatars.githubusercontent.com/u/230049?v=4)](https://github.com/uuf6429 "uuf6429 (3 commits)")[![gartner](https://avatars.githubusercontent.com/u/195601?v=4)](https://github.com/gartner "gartner (2 commits)")[![bentasker](https://avatars.githubusercontent.com/u/2900301?v=4)](https://github.com/bentasker "bentasker (2 commits)")[![steveworley](https://avatars.githubusercontent.com/u/1840912?v=4)](https://github.com/steveworley "steveworley (2 commits)")[![woolfg](https://avatars.githubusercontent.com/u/1328269?v=4)](https://github.com/woolfg "woolfg (2 commits)")[![amalmurali47](https://avatars.githubusercontent.com/u/3582096?v=4)](https://github.com/amalmurali47 "amalmurali47 (1 commits)")[![annulen](https://avatars.githubusercontent.com/u/102544?v=4)](https://github.com/annulen "annulen (1 commits)")[![sebastian-marinescu](https://avatars.githubusercontent.com/u/3798871?v=4)](https://github.com/sebastian-marinescu "sebastian-marinescu (1 commits)")[![squiddle](https://avatars.githubusercontent.com/u/98932?v=4)](https://github.com/squiddle "squiddle (1 commits)")[![syrusakbary](https://avatars.githubusercontent.com/u/188257?v=4)](https://github.com/syrusakbary "syrusakbary (1 commits)")[![tomasfejfar](https://avatars.githubusercontent.com/u/642928?v=4)](https://github.com/tomasfejfar "tomasfejfar (1 commits)")[![wangxiyu191](https://avatars.githubusercontent.com/u/1378227?v=4)](https://github.com/wangxiyu191 "wangxiyu191 (1 commits)")[![werring](https://avatars.githubusercontent.com/u/325499?v=4)](https://github.com/werring "werring (1 commits)")[![robbat2](https://avatars.githubusercontent.com/u/373898?v=4)](https://github.com/robbat2 "robbat2 (1 commits)")[![BishoyA](https://avatars.githubusercontent.com/u/8873296?v=4)](https://github.com/BishoyA "BishoyA (1 commits)")[![bmorg](https://avatars.githubusercontent.com/u/842699?v=4)](https://github.com/bmorg "bmorg (1 commits)")

### Embed Badge

![Health badge](/badges/basteyy-git-php/health.svg)

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

PHPackages © 2026

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