PHPackages                             hegedustibor/laravel-git-version - 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. hegedustibor/laravel-git-version

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

hegedustibor/laravel-git-version
================================

Get version of application from git

v1.0.0(5y ago)014MITPHPPHP ^7.1

Since Oct 28Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Get version of application from git
===================================

[](#get-version-of-application-from-git)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3af79fb9fef1e0812de1f3894bb15a94f13763561ca0f5858c2800204a16f07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686567656475737469626f722f6c61726176656c2d6769742d76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hegedustibor/laravel-git-version)[![GitHub Tests Action Status](https://camo.githubusercontent.com/d1c5df12b4a4e027913572af9d2506e3979e9b351f4f3f4d680450d1a148d354/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f686567656475737469626f722f6c61726176656c2d6769742d76657273696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/hegedustibor/laravel-git-version/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/9b6cb3f167d9ea80970731dabdc380d45a64b88a4ba294c9b857037f312fd097/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686567656475737469626f722f6c61726176656c2d6769742d76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hegedustibor/laravel-git-version)

Do you want to show version of your application from git? It is possible with this package.

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

[](#installation)

You can install the package via composer:

```
composer require hegedustibor/laravel-git-version
```

You can publish the config file with:

```
php artisan vendor:publish --provider="TiborHegedus\GitVersion\GitVersionServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'file-name' => 'version',
];
```

Usage
-----

[](#usage)

```
// Only from file
echo TiborHegedus\Facade\GitVersion::getVersionFromFile();

// Only from git
echo TiborHegedus\Facade\GitVersion::getVersionFromGit();

// Both solution
echo TiborHegedus\Facade\GitVersion::getVersion();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tibor Hegedüs](https://github.com/hegedustibor)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

2019d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6483104?v=4)[Tibor Hegedűs](/maintainers/hegedustibor)[@hegedustibor](https://github.com/hegedustibor)

---

Top Contributors

[![hegedustibor](https://avatars.githubusercontent.com/u/6483104?v=4)](https://github.com/hegedustibor "hegedustibor (9 commits)")

---

Tags

laravel-git-versiontiborhegedus

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hegedustibor-laravel-git-version/health.svg)

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

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[tonysm/rich-text-laravel

Integrates Trix content with Laravel

46577.8k1](/packages/tonysm-rich-text-laravel)[mauricius/laravel-htmx

Laravel helper library for Htmx

364101.1k1](/packages/mauricius-laravel-htmx)[illuminate/reflection

The Illuminate Reflection package.

361.6M3](/packages/illuminate-reflection)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[spatie/laravel-screenshot

Take screenshots of web pages in Laravel apps

7615.9k2](/packages/spatie-laravel-screenshot)

PHPackages © 2026

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