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(8mo ago)042MITPHPPHP ^8.2

Since Jul 4Pushed 8mo 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 1mo ago

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

33

—

LowBetter than 75% of packages

Maintenance61

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

246d 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 (24 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-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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