Download the PHP package ibrahim-kaya/visit-tracker without Composer

On this page you can find all versions of the php package ibrahim-kaya/visit-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package visit-tracker

Laravel Visit Tracker by İbrahim Kaya

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

A Laravel package to automatically track page visits including IP, browser, device, referrer, and more. Perfect for analytics and monitoring.


🌟 Features


🚀 Installation

1️⃣ Require the package via Composer


2️⃣ Publish the configuration


3️⃣ Run migrations

4️⃣ Configure queue system (optional)

If you want to use queues (recommended for production), make sure your Laravel application has a queue driver configured in .env:

If using database queues, run:

If you don't want to use queues, set use_queue => false in config/visit-tracker.php. This will process visits synchronously (useful for development/testing).

Start queue worker (only if using queues):

Or for production (supervisor recommended):


⚙️ Configuration

config/visit-tracker.php:

Attribute anonymous visits after login/register

When attribute_on_auth is enabled (default), the package:

  1. Stores a persistent visitor_id cookie while the guest browses
  2. Saves that visitor_id (and session_id) on each visit log
  3. On Login / Registered, updates matching rows where user_id is null

You can also do it manually:


💻 Usage

No extra code is required. Visit any web page and the visit is logged automatically.

Retrieve logs example:

Optional manual middleware:


📊 Statistics

The PageVisitLog model provides various static methods to retrieve statistics about your visits.

Note: The examples below are just some quick use functions. For detailed usage, you can query the model directly using Laravel's Eloquent methods to retrieve and manipulate the data as needed. All visit data is stored in the page_visit_logs table and can be accessed through the PageVisitLog model.

Basic Statistics

Total Visits:

Unique Visitors:

Unique IP Addresses:

Page Statistics

Most Visited Pages:

Visits by Date Range:

Device & Browser Statistics

Statistics by Device Type:

Statistics by Browser:

Statistics by Platform:

Referrer Statistics

Top Referrers:

Time-based Statistics

Daily Statistics:

Geographic Statistics

Statistics by Country:

Summary Statistics

Get All Statistics at Once:

Query Scopes

Exclude Bots Scope:

Date Range Scope:


📜 License

MIT License © İbrahim Kaya


All versions of visit-tracker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/queue Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/auth Version ^9.0|^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.9
hisorange/browser-detect Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ibrahim-kaya/visit-tracker contains the following files

Loading the files please wait ...