Download the PHP package lyrasoft/action-log without Composer

On this page you can find all versions of the php package lyrasoft/action-log. 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-log

LYRASOFT Action Log Package

Action Log

Installation

Install from composer

Then copy files to project

And run migrtions.

Next, add Middleware to routes/admin.route.php

If you want to log front and admin, you may put middleware to main.route.php

Languages

Add this line to admin & front middleware to load language from package automatically:

If you want to copy language file to project, run this:

Register Admin Menu

Edit resources/menu/admin/sidemenu.menu.php

Getting Started

If you have setup ActionLog package, now try to save any item or filter any list, you can see a new log shows on action_logs table:

log

Auto Clear

Bt default, ActionLog only reserve last 3 months logs. It has 1/100 chance to trigger clear action.

You can configure the reserve time and clear chance at config file or using env to configure them:

Configure Middleware

Add options to middleware:

Config Name Type Default Description
methods array, string, null ['POST', 'PUT', 'PATCH', 'DELETE'] Allowed method, use NULL to allow all
enabled bool true Enabled log, you may add your env to configure this.
max_time string, null null Max reserve time, default using config and env, can be datetime string.
clear_chance int, null null Auto clear chance, default using config and env.
clear_chance_base int, null null Auto clear chance base, default using config and env.
prepare_log callable, null null The handler to handle log item, can be callable or closure, can inject services.

Prepare Log Handler

Add a custom handler to configure every log, must use $log argument to inject log item.

This is an example to override user name.

If you want to ignore some actions, just return FALSE in prepare log handler:

Manually Log

Just inject ActionLogService to do this.

Custom Task (Action) and Entity Render

By default, the admin list table shows task and entity by english programaticlly name.

You can custom the render name by events. Create a subscriber:

Register this subscriber to etc/app/main.php:

The text you return from event will show at table list:

tasks


All versions of action-log with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
lyrasoft/luna Version ^2.1
lyrasoft/toolkit Version ^1.1
openspout/openspout Version ^4.22
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 lyrasoft/action-log contains the following files

Loading the files please wait ....