在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):unicodeveloper/laravel-identify开源软件地址(OpenSource Url):https://github.com/unicodeveloper/laravel-identify开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):laravel-identify
InstallationPHP 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
You'll then need to run
Also, register the Facade like so: 'aliases' => [
...
'Identify' => Unicodeveloper\Identify\Facades\IdentifyFacade::class,
...
] ConfigurationTo get started, you'll need to publish all vendor assets: $ php artisan vendor:publish --provider="Unicodeveloper\Identify\IdentifyServiceProvider" Browser DetectionThe browser method allows you to detect a user's browser and version. Browsers Detected
Usage/**
* 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() OS DetectionThe os method allows you to detect a user's operating system and version. OS Detected
Usage/**
* 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() Device DetectionThe device method allows you to detect a user's device. Device Detected
Usage/**
* Gets the name of the user's device
* @return string
*/
Identify::device()->getName() Language DetectionThe language method allows you to detect a user's language. Usage/**
* Gets the language that the user's browser contents are displayed in
* @return string
*/
Identify::lang()->getLanguage() ContributingPlease feel free to fork this package and contribute by submitting a pull request to enhance the functionalities. How can I thank you?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. LicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论