PHPackages                             hnhdigital-os/laravel-git-info - 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. hnhdigital-os/laravel-git-info

ActiveLibrary

hnhdigital-os/laravel-git-info
==============================

Get information about the current git state.

v1.04(3y ago)415.5k↓50%2[1 issues](https://github.com/hnhdigital-os/laravel-git-info/issues)MITPHPPHP &gt;=5.6.0

Since Nov 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hnhdigital-os/laravel-git-info)[ Packagist](https://packagist.org/packages/hnhdigital-os/laravel-git-info)[ RSS](/packages/hnhdigital-os-laravel-git-info/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

GIT Info
========

[](#git-info)

This package has been developed by H&amp;H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).

[![Latest Stable Version](https://camo.githubusercontent.com/c32d441e2877ac8dbbc18599d2e2fcf28ef960f3f172dcffacad55031e2e1403/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6769742d696e666f2f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-git-info) [![Total Downloads](https://camo.githubusercontent.com/6ad19d54eafb120fcb2d83cd9ff1cc24c6a4758ac97aaf69eddc83fddf25cdd6/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6769742d696e666f2f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/laravel-git-info) [![Latest Unstable Version](https://camo.githubusercontent.com/eb137510f41a015bdc6c1b2775d5eee335536c2d0fe4e53c0d326fc157f86c93/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6769742d696e666f2f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-git-info) [![License](https://camo.githubusercontent.com/aa8cce3cae29c6641e4778e0b746865cb052d57d11a7e99939f474e4427a2e4b/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6769742d696e666f2f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-git-info)

[![Build Status](https://camo.githubusercontent.com/22e61f473bed2d12da17f2af4b8709da9410192c210cfccf793a369fb028aac5/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6769742d696e666f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/laravel-git-info) [![StyleCI](https://camo.githubusercontent.com/3d266fb2248228a7573871a845fa51abd8a98199778254277a0bd93cda0b44ad/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353631393831362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/65619816)

Provides a wrapper for getting info from GIT.

Install
-------

[](#install)

Via composer:

`$ composer require hnhdigital-os/laravel-git-info ~1.0`

### Laravel configuration

[](#laravel-configuration)

Enable the facade by editing config/app.php:

```
    'aliases' => [
        ...
        'Git' => Bluora\LaravelGitInfo\Facade::class,
        ...
    ];
```

The service provider will autoload from Laravel 5.5.

To enable the service provider in versions prior to Laravel 5.4, edit the config/app.php:

Enable the service provider by editing config/app.php:

```
    'providers' => [
        ...
        Bluora\LaravelGitInfo\ServiceProvider::class,
        ...
    ];
```

Usage
-----

[](#usage)

### Laravel

[](#laravel)

Current version. Eg 'de83088-dirty'.

```
echo Git::version();
```

Current branch. Eg 'master'.

```
echo Git::branch();
```

Current total commits. Eg 7.

```
echo Git::commits();
```

Commit difference between current branch and master.

Optional arguments include specifying a branch and returning a text version.

```
echo Git::commitsBehind($branch = 'master', $return_text = true);
```

Show the status of the submodules.

```
echo Git::submoduleStatus();
```

### PHP

[](#php)

```
use Bluora\LaravelGitInfo\GitInfo;

echo (new GitInfo())->version();
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-git-info/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/therocis)
- [All Contributors](https://github.com/hnhdigital-os/laravel-git-info/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-git-info/blob/master/LICENSE) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 81.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 ~541 days

Total

5

Last Release

1299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (35 commits)")[![manureta](https://avatars.githubusercontent.com/u/867476?v=4)](https://github.com/manureta "manureta (6 commits)")[![manuretaindec](https://avatars.githubusercontent.com/u/89614114?v=4)](https://github.com/manuretaindec "manuretaindec (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

laravelgitversionbranch

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hnhdigital-os-laravel-git-info/health.svg)

```
[![Health](https://phpackages.com/badges/hnhdigital-os-laravel-git-info/health.svg)](https://phpackages.com/packages/hnhdigital-os-laravel-git-info)
```

###  Alternatives

[laravelplus/laravel-updater

A Laravel package for syncing with upstream repositories (GitHub, GitLab, Bitbucket, etc.)

201.7k](/packages/laravelplus-laravel-updater)

PHPackages © 2026

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