1. Go to this page and download the library: Download monishroy/visitor-tracking library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Monishroy\VisitorTracking\Helpers\Visitor;
Visitor::totalVisitors(), // Returns the total number of visitors
Visitor::uniqueVisitors(), // Returns the count of unique visitors
Visitor::topVisitedPages($limit), // Returns the most visited pages $limit = 5 default
Visitor::countries(), // Returns visitor countries
Visitor::os(), // Returns operating systems used by visitors
Visitor::devices() // Returns devices used by visitors