lablnet / userinfo
PHP Userinfo package.
1.0
2020-02-23 08:09 UTC
Requires
- php: ^7.1
This package is auto-updated.
Last update: 2024-10-23 18:30:04 UTC
README
Get User information
Requirement
- PHP 7 (7.3 Recommanded).
- Composer.
Insallation
Installing this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run:
composer require lablnet/userinfo
Feature
- Get user ip.
- Get user Browser Name.
- Get user Browser Version.
- Get user Operating System Name.
- Get user Operating System Version.
Example
<?php use Lablnet\UserInfo; require_once '../vendor/autoload.php'; $info = new UserInfo(); $osName = $info->operatingSystem(); $osVersion = $info->osVersion(); $browserName = $info->browser()['browser']; $browserVersion = $info->browserVersion(); $ip = $info->ip(); $data = [ 'Operating System Name' => $osName, 'Operating System Version' => $osVersion, 'Browser Name' => $browserName, 'Browser Version' => $browserVersion, 'Ip address' => $ip, ]; var_dump($data);
Contributions
There is still a lot of work to do, so feel free to contribute to open PR
License
MIT
Support
Donate coffee?
here is the bitcoin address
37x6PA4qtPu2fQnYdW5U7jztYhbchASpBV
Thanks you so much.
Disclaimer
I don't Accept any responsibility for any illegal usage