Download the PHP package mnabialek/laravel-version without Composer
On this page you can find all versions of the php package mnabialek/laravel-version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mnabialek/laravel-version
More information about mnabialek/laravel-version
Files in mnabialek/laravel-version
Download mnabialek/laravel-version
More information about mnabialek/laravel-version
Files in mnabialek/laravel-version
Please rate this library. Is it a good library?
Informations about the package laravel-version
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
-
Run
in console to install this module
- That's it! Installation is complete. You don't need to adjust any config or install service providers.
Usage
Just run:
(you can obviously use dependency injection) and then use one of available methods for example like this
or
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
This package is licenced under the MIT license
All versions of laravel-version with dependencies
PHP Build Version
Package Version
Requires
illuminate/container Version
5.*|6.*|7.*|8.*|9.*|10.*|11.*
The package mnabialek/laravel-version contains the following files
Loading the files please wait ....