PHPackages                             coyl/git - 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. coyl/git

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

coyl/git
========

PHP library for manipulations on git repository. Based on kbjr/Git.php and it's forks

0.1.7(8y ago)11212.3k↓57.6%54PHPPHP &gt;=5.4

Since Feb 13Pushed 8y ago3 watchersCompare

[ Source](https://github.com/coyl/git)[ Packagist](https://packagist.org/packages/coyl/git)[ Docs](https://github.com/coyl/Git.php)[ RSS](/packages/coyl-git/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (17)Used By (4)

Git.php
=======

[](#gitphp)

A PHP git library based on kbjr/Git.php

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

Basic Use
---------

[](#basic-use)

```
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');
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~87 days

Recently: every ~183 days

Total

16

Last Release

3218d ago

### Community

Maintainers

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

---

Top Contributors

[![kbjr](https://avatars.githubusercontent.com/u/195127?v=4)](https://github.com/kbjr "kbjr (43 commits)")[![etolstikov](https://avatars.githubusercontent.com/u/16716975?v=4)](https://github.com/etolstikov "etolstikov (7 commits)")[![coyl](https://avatars.githubusercontent.com/u/274452?v=4)](https://github.com/coyl "coyl (6 commits)")[![mAAdhaTTah](https://avatars.githubusercontent.com/u/4371429?v=4)](https://github.com/mAAdhaTTah "mAAdhaTTah (4 commits)")[![bocharov](https://avatars.githubusercontent.com/u/2346898?v=4)](https://github.com/bocharov "bocharov (4 commits)")[![uuf6429](https://avatars.githubusercontent.com/u/230049?v=4)](https://github.com/uuf6429 "uuf6429 (3 commits)")[![steveworley](https://avatars.githubusercontent.com/u/1840912?v=4)](https://github.com/steveworley "steveworley (2 commits)")[![gartner](https://avatars.githubusercontent.com/u/195601?v=4)](https://github.com/gartner "gartner (2 commits)")[![woolfg](https://avatars.githubusercontent.com/u/1328269?v=4)](https://github.com/woolfg "woolfg (2 commits)")[![robbat2](https://avatars.githubusercontent.com/u/373898?v=4)](https://github.com/robbat2 "robbat2 (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)")[![vivatvet](https://avatars.githubusercontent.com/u/3500562?v=4)](https://github.com/vivatvet "vivatvet (1 commits)")[![LiSinCin](https://avatars.githubusercontent.com/u/6211954?v=4)](https://github.com/LiSinCin "LiSinCin (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)")[![eamelink](https://avatars.githubusercontent.com/u/332784?v=4)](https://github.com/eamelink "eamelink (1 commits)")[![ElliottLandsborough](https://avatars.githubusercontent.com/u/1583854?v=4)](https://github.com/ElliottLandsborough "ElliottLandsborough (1 commits)")[![fitorec](https://avatars.githubusercontent.com/u/144527?v=4)](https://github.com/fitorec "fitorec (1 commits)")[![annulen](https://avatars.githubusercontent.com/u/102544?v=4)](https://github.com/annulen "annulen (1 commits)")

---

Tags

gitphp-gitgit-client

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[czproject/git-php

Library for work with Git repository in PHP.

5645.2M112](/packages/czproject-git-php)[cypresslab/gitelephant

An abstraction layer for git written in PHP

6131.2M31](/packages/cypresslab-gitelephant)[teqneers/php-stream-wrapper-for-git

Git Stream Wrapper for PHP

2892.2M8](/packages/teqneers-php-stream-wrapper-for-git)[bruli/php-git-hooks

Git hooks for PHP projects.

669372.2k5](/packages/bruli-php-git-hooks)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2521.5M118](/packages/marcocesarato-php-conventional-changelog)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.6M155](/packages/ramsey-conventional-commits)

PHPackages © 2026

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