Download the PHP package amylashley/traffic-logger without Composer
On this page you can find all versions of the php package amylashley/traffic-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amylashley/traffic-logger
More information about amylashley/traffic-logger
Files in amylashley/traffic-logger
Package traffic-logger
Short Description :package_description
License MIT
Homepage https://github.com/amylashley/traffic-logger
Informations about the package traffic-logger
TrafficLogger
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
Add ServiceProvider to app.php
Publish config and migration to your app:
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.
Add Middleware to your app\Http\Kernel.php
in the global middleware array:
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
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Amy Lashley
- All Contributors
License
The MIT License (MIT). Please see License File for more information.