Download the PHP package jeremykenedy/laravel-logger without Composer

On this page you can find all versions of the php package jeremykenedy/laravel-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-logger

Laravel Logger

Laravel Activity Logger

Laravel logger is an activity event logger for your Laravel or Lumen application. It comes out the box with ready to use with dashboard to view your activity. Laravel logger can be added as a middleware or called through a trait. Easily have an Activity Log. This package is easily configurable and customizable. Supports Laravel 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6, 7, 8 and 9+

Latest Stable Version Total Downloads

StyleCI

Scrutinizer Code Quality License: MIT

Table of contents

Features

Laravel Activity Logger Features
Logs login page visits
Logs user logins
Logs user logouts
Routing Events can recording using middleware
Records activity timestamps
Records activity description
Records activity details (optional)
Records model related to the activity (optional)
Records activity user type with crawler detection
Records activity Method
Records activity Route
Records activity Ip Address
Records activity User Agent
Records activity Browser Language
Records activity referrer
Customizable activity model
Activity panel dashboard
Individual activity drilldown report dashboard
Activity Drilldown looks up Id Address meta information
Activity Drilldown shows user roles if enabled
Activity Drilldown shows associated user events
Activity log can be cleared, restored, and destroyed using eloquent softdeletes
Cleared activity logs can be viewed and have drilldown ability
Uses font awesome, cdn assets can be optionally called in configuration
Uses Geoplugin API for drilldown IP meta information
Uses Language localization files
Lots of configuration options

Requirements

:film_strip: Video Tour

If you'd prefer a more visual review of this package, please watch this video on Laravel Package Tutorial.

Integrations

Laravel logger can work out the box with or without the following roles packages:

Laravel Installation Instructions

  1. From your projects root folder in terminal run:

  2. Register the package
  1. Run the migration to add the table to record the activities to:
  1. Optionally Update your .env file and associated settings (see Environment File section)

  2. Optionally publish the packages views, config file, assets, and language files by running the following from your projects root folder:

Lumen Installation Instructions

This installs laravel-logger without the GUI
  1. From your projects root folder in terminal run:

  2. Register the package

Register the package with laravel in bootstrap/app.php with the following:

  1. Copy the configuration file laravel-logger.php to your config/ directory
Set LARAVEL_LOGGER_DISABLE_ROUTES=true in your .env file!
  1. Run the migration to add the table to record the activities to:
  1. Optionally Update your .env file and associated settings (see Environment File section)

Configuration

Laravel Activity Logger can be configured in directly in /config/laravel-logger.php if you published the assets. Or you can variables to your .env file.

Environment File

Here are the .env file variables available:

Usage

Middleware Usage

Events for laravel authentication scaffolding are listened for as providers and are enabled via middleware. You can add events to your routes and controllers via the middleware:

Example to start recording page views using middlware in web.php:

This middlware can be enabled/disabled in the configuration settings.

Trait Usage

Events can be recorded directly by using the trait. When using the trait you can customize the event description.

To use the trait:

  1. Include the call in the head of your class file:

  2. Include the trait call in the opening of your class:

  3. You can record the activity by calling the traits method:

    Or as bellow to include extended activity details:

    Or even including the model related to the activity:

Routes

Laravel Activity Dashbaord Routes

Custom package routes

If you wish to change the route paths, names or other options you can disable the default routes in your .env file by setting

If you are on an existing install, you will also need update your laravel-logger.php config file to add the config option:

You can then add the routes directly to your application's routes/web.php file, and customise as required.

Search

adding dynamic search fields (description , user, URL , method and ip address)

High Performance Paginator

When dealing with millions activity records, default behavior of not paginate records or Laravel's paginator (enabled LARAVEL_LOGGER_PAGINATION_ENABLED=true) may lead to huge performance penalties. For that use case you may set LARAVEL_LOGGER_CURSOR_PAGINATION_ENABLED=true to enable Laravel's Cursor Pagination feature. This will heavily improve Laravel Logger page loading time. If you choose to do so it's advisable to read Cursor vs. Offset Pagination section on Laravel's documentation to get acquainted with Cursor Pagination limitations.

.env file

add these configurations to your .env file to control the logging search

by default all search fields are enabled when you enable the search with this one line configuration

Screenshots

dashboard drilldown confirm-clear log-cleared-msg cleared-log confirm-restore confirm-destroy success-destroy success-restored cleared-drilldown

File Tree

Opening an Issue

Before opening an issue there are a couple of considerations:

License

Laravel-logger is licensed under the MIT license. Enjoy!


All versions of laravel-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0|^8.0
jaybizzle/laravel-crawler-detect Version 1.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeremykenedy/laravel-logger contains the following files

Loading the files please wait ....