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 today

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 26% 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

4176d 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

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514139.2M689](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k51](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[logiscape/mcp-sdk-php

Model Context Protocol SDK for PHP

368116.8k12](/packages/logiscape-mcp-sdk-php)

PHPackages © 2026

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