2017 © Pedro Peláez
 

library traffic-logger

:package_description

image

amylashley/traffic-logger

:package_description

  • Thursday, September 7, 2017
  • by amylashley
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TrafficLogger

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Laravel package that will log certain traffic data to a MySQL database. This package relies on the Eloquent ORM which is included with Laravel., (*2)

Install

Via Composer

``` bash $ composer require amylashley/traffic-logger, (*3)

Add ServiceProvider to app.php

AmyLashley\TrafficLogger\App\Providers\TrafficLoggerServiceProvider::class,, (*4)


Publish config and migration to your app:

php artisan vendor:publish --provider="AmyLashley\TrafficLogger\App\Providers\TrafficLoggerServiceProvider", (*5)


######Migrate the database. You can change the database table that the logger users by update the table-name variable in the trafficlog.php config file.

php artisan migrate, (*6)


######Add Middleware to your `app\Http\Kernel.php` in the global middleware array:

\AmyLashley\TrafficLogger\App\Http\Middleware\LogRequest::class,, (*7)


##Configuration The following can be configured in trafficlog.php: -table-name: change the name of the database table that TrafficLogger will use. The default value is "log" -impersonator: If your system uses impersonation, and you'd like to capture the id of the impersonator, you'll need to add this functionality to your system: add a session variable and populate it when your system authenticates the user being impersonated. Then you can use this variable in TrafficLogger. The default value is "auth_imitator". ## Usage You can view your traffic reports at /admin/traffic-logger/report ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*8)

Security

If you discover any security related issues, please email alashley@amherst.edu instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

07/09 2017

dev-master

9999999-dev https://github.com/amylashley/traffic-logger

:package_description

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

by :Amy Lashley

laravel logger amylashley trafficlogger

17/08 2017

0.0.1

0.0.1.0 https://github.com/amylashley/traffic-logger

:package_description

  Sources   Download

MIT

The Requires

  • php ~5.6|~7.0

 

The Development Requires

by :Amy Lashley

laravel logger amylashley trafficlogger