2017 © Pedro Peláez
 

library visitor

Contador de visitas para laravel 5.x, basado en el package de weboap/visitor

image

d3turnes/visitor

Contador de visitas para laravel 5.x, basado en el package de weboap/visitor

  • Sunday, February 25, 2018
  • by d3turnes
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

#Visitor

Register your visitors, Page hits for Laravel 5, (*1)

for laravel 4 use ver v1.0.0, (*2)

Installation

Add d3turnes/visitor to your composer file., (*3)

Step 1

For Laravel 5 installation edit your project's composer.json file to require d3turnes/visitor., (*4)

``` json, (*5)

"require": {
        "d3turnes/visitor": "dev-master"
    }

Update Composer from the CLI: composer update ## Step 2 Add if your laravel version is < 5.5 ``` php Weboap\Visitor\VisitorServiceProvider::class

to the list of service providers in app/config/app.php, (*6)

Step 3

Migrate the Visitor Table Run, (*7)

``` php php artisan vendor:publish, (*8)

then

``` php
php artisan migrate

to migrate visitor table, (*9)

the config.php will be copied to /config at the same time, (*10)

``` php /config/visitor.php, (*11)


costumize it accordinly ## Step 5 (Optional) Visit http://dev.maxmind.com/geoip/geoip2/geolite2/ download GeoLite2-City.mmdb place it in (create the geo directory) ``` php storage/geo/

or where ever you want just adjust the package config to reflect the new location, it's used to geo locate visitors, (*12)

Usage

``` php, (*13)

Visitor::log(); //log in db visitor ip, geo location, hit counter, (*14)

Visitor::get(); Visitor::get( $ip ); //fetch ip record, (*15)

Visitor::forget( $ip ); //delete ip from log, (*16)

Visitor::has( $ip ); // checkk if visitor ip exist in log, (*17)

Visitor::count() // return count of all site registred unique visitors, (*18)

Visitor::all(); // all records as array, (*19)

Visitor::all(true); // all records as collection, (*20)

Visitor::clicks(); //total of all clicks, (*21)

Visitor::range($date_start, $date_end); // visitors count in a date range;, (*22)

```, (*23)

Credits

This product Uses GeoLite2 data created by MaxMind, whenever available., (*24)

Enjoy!, (*25)

The Versions

25/02 2018

dev-master

9999999-dev

Contador de visitas para laravel 5.x, basado en el package de weboap/visitor

  Sources   Download

MIT

The Requires

 

by Avatar d3turnes

laravel log framework counter hits clicks visitors

02/09 2017

v2.0.5

2.0.5.0

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar weboap

laravel log framework counter hits clicks visitors

09/01 2017

dev-analysis-8AyRQN

dev-analysis-8AyRQN

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar weboap

laravel log framework counter hits clicks visitors

08/10 2016

v2.0.4

2.0.4.0

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar weboap

laravel log framework counter hits clicks visitors

20/09 2016

v2.0.3

2.0.3.0

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar weboap

laravel log framework counter hits clicks visitors

12/06 2015

v2.0.2

2.0.2.0

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar weboap

laravel log framework counter hits clicks visitors

07/06 2015

v2.0.1

2.0.1.0

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar weboap

laravel log framework counter hits clicks visitors

08/05 2015

v2.0.0

2.0.0.0

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar weboap

laravel log framework counter hits clicks visitors

25/07 2014

v1.0.0

1.0.0.0

log your visitors in db, page hits, and generate visit counter for Laravel 4

  Sources   Download

The Requires

 

The Development Requires

by Avatar weboap

laravel log framework counter hits clicks visitors

22/03 2014

0.1.0

0.1.0.0

log your visitors in db, page hits, and generate visit counter for Laravel 4

  Sources   Download

The Requires

 

The Development Requires

by Avatar weboap

laravel log framework counter hits clicks visitors