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

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

krisell/deployed-version-laravel
================================

Adds a route to show currently running version

v1.1.0(6y ago)09.3k↓39.1%MITPHPCI passing

Since Sep 3Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Krisell/deployed-version-laravel)[ Packagist](https://packagist.org/packages/krisell/deployed-version-laravel)[ RSS](/packages/krisell-deployed-version-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Deployed Version Laravel
========================

[](#deployed-version-laravel)

This package helps with determining which version of your app is currently running. This is useful during a deploy, to see when it is finished, and also when you rollback to ensure that the correct version is loaded.

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

[](#installation)

Add the package to your Laravel project.

`composer require krisell/deployed-version-laravel`

The package is configured for automatic discovery, so unless you have other settings, you do not need to manually add the service provider.

Usage
-----

[](#usage)

The package by default adds a route `/version` which displays the value of the environment-variable `VERSION`.

You need to set the value of this variable during your build or deploy process.

```
VERSION=YOUR_VERSION_VALUE
```

One way to achieve this is to run the following script, which uses the git hash as the version number, but you may do it however you like:

```
echo "VERSION=$(git -C gitdir rev-parse HEAD)" >> .env.current-build
```

`.env.current-build` refers to a copy of the `.env-file`, to ensure that the addition is not persistent.

The route can be customized by setting an optional prefix,

```
VERSION_ROUTE_PREFIX=custom-prefix
```

Which makes the route `/custom-prefix/version`.

The route returns simple JSON data,

```
{
  "version": "version-number"
}
```

Licence
-------

[](#licence)

MIT

Author
------

[](#author)

Martin Krisell ()

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance54

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~81 days

Total

2

Last Release

2369d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25909128?v=4)[Martin Sandström Krisell](/maintainers/Krisell)[@Krisell](https://github.com/Krisell)

---

Top Contributors

[![Krisell](https://avatars.githubusercontent.com/u/25909128?v=4)](https://github.com/Krisell "Krisell (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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