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

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

grynn/git
=========

A simple wrapper for git (depends on the git executable). Supports subset of commands useful for versioning projects

v0.0.3(11y ago)024proprietaryPHPPHP &gt;=5.3.3

Since Jan 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Grynn/Git)[ Packagist](https://packagist.org/packages/grynn/git)[ Docs](http://github.com/Grynn/grynn-git)[ RSS](/packages/grynn-git/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Grynn\\Git
==========

[](#grynngit)

Simple PHP wrapper for Git (depends on git executable being in the path). Very limited feature set. Mainly for use with Grynn\\GitVersionBump

Installation
------------

[](#installation)

To add this package as a local, per-project dependency to your project, simply add a dependency on `grynn/git` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Grynn\\Git 1.0:

```
{
    "require": {
        "grynn/git": "1.0.*"
    }
}

```

Usage
-----

[](#usage)

```
$git = new \Grynn\Git();
$git->getCurrentBranch();   //Returns: branchname
$git->isDirty();            //Returns: true if working dir is dirty
$git->getVersionTag();       //Returns: version tag that describes current HEAD

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~10 days

Total

3

Last Release

4130d ago

### Community

Maintainers

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

---

Top Contributors

[![Grynn](https://avatars.githubusercontent.com/u/212880?v=4)](https://github.com/Grynn "Grynn (3 commits)")

---

Tags

git

### Embed Badge

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

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

###  Alternatives

[czproject/git-php

Library for work with Git repository in PHP.

5544.9M81](/packages/czproject-git-php)[cypresslab/gitelephant

An abstraction layer for git written in PHP

6131.0M23](/packages/cypresslab-gitelephant)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/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

2511.3M109](/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.2M122](/packages/ramsey-conventional-commits)[sebastianfeldmann/git

PHP git wrapper

466.9M18](/packages/sebastianfeldmann-git)

PHPackages © 2026

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