Download the PHP package laravel-enso/action-logger without Composer

On this page you can find all versions of the php package laravel-enso/action-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 action-logger

Action Logger

Stable Downloads Issues Merge Requests

Description

Action Logger records authenticated user activity for routes that opt into Enso's action-logger middleware.

It is a small backend package focused on request auditing at the application edge. It captures which authenticated user accessed which named route, by which HTTP method, at what URL, and how long the request took to complete.

The package is designed to work inside the Laravel Enso ecosystem and integrates with Enso users, permissions, dynamic relationships, frontend enums, and Enso tables.

Installation

This package comes pre-installed in Laravel Enso distributions that require activity tracking.

For standalone package installation inside an Enso-based application:

The package auto-registers its service provider, loads its migrations, and registers the action-logger middleware alias.

Run the migrations after installation:

Features

Usage

Apply the middleware to the routes you want to track:

Once the middleware is active, every authenticated request matched by those routes will create a new action log entry when the request terminates.

The package also adds an actionLogs() relationship to the Enso user model, so user activity can be queried directly:

API

Middleware

Model

LaravelEnso\ActionLogger\Models\ActionLog

Stored attributes:

method is cast to LaravelEnso\ActionLogger\Enums\Methods.

Relationships:

Dynamic User Relation

The package binds an actionLogs() relation to LaravelEnso\Users\Models\User through the Enso dynamic-methods package.

Enum

LaravelEnso\ActionLogger\Enums\Methods

Registered frontend key:

Supported methods:

Use Methods::fromRequest($request) to map an internal Laravel request to the stored enum value.

Table

Backend route group:

Available endpoints:

The companion frontend package is @enso-ui/action-logger.

The table defaults to action_logs.created_at desc, exposes created_at as a datetime column, and displays the resolved permission instead of a separate raw route column.

::: warning Note This package only logs actions for authenticated requests. If no authenticated user is available, no action log entry is created.

Because it relies on the resolved route name, routes without meaningful names provide less useful audit data. :::

Depends On

Required Enso packages:

Framework dependency:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!


All versions of action-logger with dependencies

PHP Build Version
Package Version
Requires laravel-enso/core Version ^12.0
laravel-enso/dynamic-methods Version ^4.0
laravel-enso/enums Version ^3.0
laravel-enso/menus Version ^5.0
laravel-enso/migrator Version ^2.0
laravel-enso/permissions Version ^5.0
laravel-enso/tables Version ^5.0
laravel-enso/upgrade Version ^2.0
laravel-enso/users Version ^2.0
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 laravel-enso/action-logger contains the following files

Loading the files please wait ...