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

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

shabushabu/laravel-version
==========================

Various version tools for Laravel based on Git tags

v0.4.1(9mo ago)044MITPHPPHP ^8.2

Since Jul 4Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ShabuShabu/laravel-version)[ Packagist](https://packagist.org/packages/shabushabu/laravel-version)[ Docs](https://github.com/shabushabu/laravel-version)[ GitHub Sponsors](https://github.com/boris-glumpler)[ RSS](/packages/shabushabu-laravel-version/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (14)Versions (8)Used By (0)

Laravel Version
===============

[](#laravel-version)

[![Latest Version on Packagist](https://camo.githubusercontent.com/80a35e3c6676d253f5b90d9964b82a458c00f608c493a0bbd598eaed059e44d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736861627573686162752f6c61726176656c2d76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shabushabu/laravel-version)[![Total Downloads](https://camo.githubusercontent.com/b833eb3070bbf0db9ca377ac6f7d0a747bbdf5249f13259ad7f4054112810579/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736861627573686162752f6c61726176656c2d76657273696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shabushabu/laravel-version)

A small package that gives you various version tools based on Git tags

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

[](#installation)

You can install the package via composer:

```
composer require shabushabu/laravel-version
```

You can then publish the config file with:

```
php artisan vendor:publish --tag="version-config"
```

Usage
-----

[](#usage)

Can be used in site footers or user agent strings, for example.

```
use function ShabuShabu\Version\version;

version()->date(); // CarbonInterface::class
version()->tag(); // eg: v0.18.0
version()->hash(); // eg: 9127c86
version()->short(); // eg: v0.18.0-9127c86
version()->long(format: 'Y-m-d'); // eg: v0.18.0-9127c86 (2023-09-21)
```

The info is cached using the following key: `app:version`, so you might want to clear that as part of your deployment like so:

```
php artisan cache:forget app:version
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Boris Glumpler](https://github.com/boris-glumpler)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance72

Regular maintenance activity

Popularity8

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

Every ~86 days

Recently: every ~107 days

Total

6

Last Release

298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31bd8ffbf4cfc6964e4bc0073b40d450e313c82d08c843b91899233be124ea71?d=identicon)[shabushabu](/maintainers/shabushabu)

---

Top Contributors

[![boris-glumpler](https://avatars.githubusercontent.com/u/580004?v=4)](https://github.com/boris-glumpler "boris-glumpler (25 commits)")

---

Tags

laravelversionshabushabu

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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