{"repo":"shetabit/visitor","free":true,"listed":false,"github":"https://github.com/shetabit/visitor","clone":"git clone https://github.com/shetabit/visitor.git","description":"a laravel package to work with visitors and retrieve their informations","language":"PHP","stars":568,"topics":["visitor-information","laravel","laravel-online-users"],"license":"MIT","category":"dev-tools","readme_excerpt":"Laravel Visitor [![Software License][ico-license]](LICENSE.md) [![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads on Packagist][ico-download]][link-packagist] [![Tests][ico-tests]][link-tests] [![Code Style][ico-code-style]][link-code-style] [![Static Analysis][ico-static-analysis]][link-static-analysis] [![Code Coverage][ico-coverage]][link-coverage] This is a laravel package to extract and access visitors' information such as browser , ip , device and etc. In this package, you can recognize online users and determine if a user is online or not This package requires PHP 8.4+ and supports Laravel 12+ . Install Via composer Configure The service provider and the Visitor alias are registered by Laravel's package discovery, so there is nothing to add to config/app.php (or to bootstrap/providers.php ). Run the below commands to publish the migrations and create the tables The configuration file can be published as well, if you want to change the driver, the name of the table or the paths that are not logged How to use You can access to visitor's information using $request- visitor() in your controllers , and you can access to the visitor's information using visitor() helper function any where. We have the below methods to retrieve a visitor's information: - device : device's name - platform : platform's name - browser : browser's name - languages : language's name - ip : client's ip - request : the whole request inputs - useragent : the whole userage","default_branch":null,"files":null,"tree":[],"storefront":"/r/shetabit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shetabit/visitor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}