larapack/mobiledetect
Larablocks Analysis
larapack/mobiledetect works with Laravel 4 (latest release 1.0, Jun 10, 2015), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4, past end of life
- No release in the last 12 months (last: Jun 10, 2015)
- 0 downloads a month (needs 10,000)
- 4 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 10, 2015.
- No releases in the last 12 months.
- First released: Jun 10, 2015.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require larapack/mobiledetect |
|
| Latest Version: | 1.0 |
| PHP: | >=5.3.0 |
| Laravel: | 4 |
| Last Updated: | Feb 5, 2018 |
| Links: | GitHub · Packagist |
MobilDetect package for Laravel
Info
Version: 1.0
Author: Mark Topper [Facebook] [Github] [Twitter]
Website: www.webman.io
Email: mark@webman.io
Installation
First add the package to your composer by running command composer require larapack/mobiledetect 1.* or by adding the following code to composer.json followed by running the command composer update:
{
"require": {
"larapack/mobiledetect": "1.*"
}
}
Add the alias to the aliases in your app/config/app.php:
'aliases' => array(
// ...
'MobileDetect' => 'Larapack\MobileDetect\MobileDetect',
)
Usage
The following examples assume you use the MobileDetect class name as alias, but the packages is namespaced so you can name the facade as you wish.
$detect = MobileDetect;
if ($detect->isMobile()){
// this is a mobile
}
else if ($detect->isTablet()){
// this is a tablet
}
if ($detect->isIE()){
// this is IE -.-'
}
More examples on http://mobiledetect.net/
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0 | >=5.3.0 | 4.x |