Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Endoflife.date | 1,396 | 13 hours ago | 128 | mit | Ruby | |||||
Informative site with EoL dates of everything | ||||||||||
Laravel Sms | 832 | 42 | 2 | 5 years ago | 28 | June 23, 2017 | 21 | mit | PHP | |
:iphone::heavy_check_mark:A phone number validation solution based on laravel | ||||||||||
Laravel Identify | 148 | 3 years ago | 9 | May 07, 2019 | 2 | mit | PHP | |||
:package: :iphone: Laravel 5 Package to Detect Users Browsers, Devices, Languages and Operating Systems | ||||||||||
Itsallwidgets | 40 | 20 days ago | 30 | other | Blade | |||||
An open list of apps built with Flutter | ||||||||||
Appmarket | 4 | 4 years ago | mit | PHP | ||||||
AppMarket, a library for getting app details from play store and app store |
Laravel 5 Package to identify a User's Browser, Operating System, Language and Device
PHP 7.1+ or HHVM 3.3+, and Composer are required.
To get the latest version of Laravel Identify, simply add the following line to the require block of your composer.json
file.
"unicodeveloper/laravel-identify": "1.7.*"
You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
config/app.php
and add the following to the providers
array:Unicodeveloper\Identify\IdentifyServiceProvider::class
Also, register the Facade like so:
'aliases' => [
...
'Identify' => Unicodeveloper\Identify\Facades\IdentifyFacade::class,
...
]
To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="Unicodeveloper\Identify\IdentifyServiceProvider"
The browser method allows you to detect a user's browser and version.
/**
* Gets the version of the user's browser
* @return string
*/
Identify::browser()->getVersion()
/**
* Gets the name of the user's browser
* @return string
*/
Identify::browser()->getName()
The os method allows you to detect a user's operating system and version.
/**
* Gets the version of the user's Operating System
* @return string
*/
Identify::os()->getVersion()
/**
* Gets the name of the user's Operating System
* @return string
*/
Identify::os()->getName()
The device method allows you to detect a user's device.
/**
* Gets the name of the user's device
* @return string
*/
Identify::device()->getName()
The language method allows you to detect a user's language.
/**
* Gets the language that the user's browser contents are displayed in
* @return string
*/
Identify::lang()->getLanguage()
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Don't forget to follow me on twitter!
Thanks! Prosper Otemuyiwa.
The MIT License (MIT). Please see License File for more information.