PHPackages                             markwalet/laravel-git-state - 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. markwalet/laravel-git-state

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

markwalet/laravel-git-state
===========================

A Laravel package that gives you information about the current git state.

v1.11.1(1mo ago)8110.3k↑20.9%[2 issues](https://github.com/markwalet/laravel-git-state/issues)2MITPHPPHP ^8.2CI passing

Since Aug 2Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/markwalet/laravel-git-state)[ Packagist](https://packagist.org/packages/markwalet/laravel-git-state)[ Fund](https://www.paypal.me/markwalet)[ GitHub Sponsors](https://github.com/markwalet)[ RSS](/packages/markwalet-laravel-git-state/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (36)Used By (2)

Laravel Git State
=================

[](#laravel-git-state)

[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/7b081732b1410ce286f97756eac421f27fdadf0fcb81d9b01396ace57ffa3c31/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b77616c65742f6c61726176656c2d6769742d73746174652f762f737461626c65)](https://packagist.org/packages/markwalet/laravel-git-state)[![Build status](https://camo.githubusercontent.com/190f1e9b426dcae0de9e453475debecf35f1d93d17b2a41a3e4e268b17764122/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61726b77616c65742f6c61726176656c2d6769742d73746174652f74657374732e796d6c3f6272616e63683d6d6173746572)](https://github.com/markwalet/laravel-git-state/actions)[![Coverage](https://camo.githubusercontent.com/0c91f7c1e09f12e39c97fc0ed21e4b58ece76b78d20e8d8444371d3c2f311103/68747470733a2f2f636f6465636f762e696f2f67682f6d61726b77616c65742f6c61726176656c2d6769742d73746174652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/markwalet/laravel-git-state)[![Total Downloads](https://camo.githubusercontent.com/55d7138031566e38593e35c0e27bfbc032c692b5fdeb7a8acc6a138cc6d8a1a1/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b77616c65742f6c61726176656c2d6769742d73746174652f646f776e6c6f616473)](https://packagist.org/packages/markwalet/laravel-git-state)

A Laravel package that gives you information about the current git state.

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

[](#installation)

You can install this package with composer:

```
composer require markwalet/laravel-git-state
```

Laravel auto-loads service providers for you, so you don't have to register it. If you want to register the service provider manually, add the following line to your `config/app.php` file:

```
MarkWalet\GitState\GitStateServiceProvider::class
```

Usage
-----

[](#usage)

When you want to get information about the current git state, you can inject the `MarkWalet\GitState\Drivers\GitDriver` class in your methods:

```
