New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

amylashley/traffic-logger

:package_description
40 2

Larablocks Analysis

amylashley/traffic-logger works with any PHP project: the latest release (0.0.1, Aug 17, 2017) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Aug 17, 2017)
  • 0 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Aug 17, 2017.
  • No releases in the last 12 months.
  • First released: Aug 17, 2017.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require amylashley/traffic-logger
Latest Version:0.0.1
PHP:~5.6|~7.0
License:MIT
Last Updated:Sep 7, 2017
Links: GitHub  ·  Packagist
Maintainer: amylashley

TrafficLogger

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

Install

######Via Composer

$ composer require amylashley/traffic-logger

Add ServiceProvider to app.php

AmyLashley\TrafficLogger\App\Providers\TrafficLoggerServiceProvider::class,

Publish config and migration to your app:

php artisan vendor:publish --provider="AmyLashley\TrafficLogger\App\Providers\TrafficLoggerServiceProvider"

######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

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

\AmyLashley\TrafficLogger\App\Http\Middleware\LogRequest::class,

##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 for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

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

Credits

License

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440

Version History

Version Released PHP License
0.0.1 ~5.6|~7.0 MIT