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

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

mnabialek/laravel-version
=========================

Get Laravel/Lumen version

v1.0.9(4mo ago)6668.4k↓13.6%4[2 PRs](https://github.com/mnabialek/laravel-version/pulls)4MITPHPCI passing

Since Jan 7Pushed 3mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (15)Used By (4)

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

[](#laravel-version)

[![Packagist](https://camo.githubusercontent.com/a338cf2247c21085b24f54360e1ff695a0104d0bb87188fd99ff3ea94e91f560/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6e616269616c656b2f6c61726176656c2d76657273696f6e2e737667)](https://packagist.org/packages/mnabialek/laravel-version)[![Tests](https://github.com/mnabialek/laravel-version/workflows/Tests/badge.svg)](https://github.com/mnabialek/laravel-version/actions)[![codecov](https://camo.githubusercontent.com/d39f749d2ad77647b19082b73c0d2695e99e96b5efb56a507616a2152b8fadc9/68747470733a2f2f636f6465636f762e696f2f67682f6d6e616269616c656b2f6c61726176656c2d76657273696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mnabialek/laravel-version)

This package let you verify whether current application is `Laravel` or `Lumen`, get application version and verify whether application is minimum at given version string.

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

[](#installation)

1. Run

    ```
    composer require mnabialek/laravel-version
    ```

    in console to install this module
2. That's it! Installation is complete. You don't need to adjust any config or install service providers.

Usage
-----

[](#usage)

Just run:

```
$version = app()->make(\Mnabialek\LaravelVersion\Version);
```

(you can obviously use dependency injection) and then use one of available methods for example like this

```
$result = $version->isLaravel();
```

or

```
if ($version->isLaravel()) {
   // do something
}
```

Available methods
-----------------

[](#available-methods)

- `isLaravel()` - verify whether application is Laravel (true for Laravel, false for Lumen)
- `isLumen()` - verify whether application is Lumen (true for Lumen, false for Laravel)
- `full()` - get full version string (keep in mind for Lumen it can be for example: 'Lumen (5.5.2) (Laravel Components 5.5.\*)')
- `get()` - get version (for Both Laravel and Lumen it will contain only version number for example 5.5.2)
- `min($checkedVersion)` - verify whether application is minimum at given version. As `$checkedVersion` you should pass version you want to verify for example 5.5 or 5.5.21

Licence
-------

[](#licence)

This package is licenced under the [MIT license](https://github.com/mnabialek/laravel-version/blob/master/LICENSE)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance77

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity71

Established project with proven stability

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

Recently: every ~352 days

Total

10

Last Release

149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75e68c5eb4daa861595caa21f3d4c6f94ff25118535bc8eac93648b095eab307?d=identicon)[mnabialek](/maintainers/mnabialek)

---

Top Contributors

[![mnabialek](https://avatars.githubusercontent.com/u/7656807?v=4)](https://github.com/mnabialek "mnabialek (28 commits)")

---

Tags

laravellumenlaravel versionlumen version

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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