Download the PHP package aurorawebsoftware/logiaudit without Composer

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

LogiAudit

LogiAudit is a Laravel package designed for structured logging with support for job-based log storage, pruning, and customizable log levels.

Features

Installation

You can install the package via Composer:

Running Migrations

After installation, run the migration command to create the necessary database table:

Log Usage

Logging Events

You can log messages using the provided addLog helper function:

addLog Helper Function Details

The addLog function allows for flexible logging with optional parameters:

Using LogiAudit with Laravel's Logging System

You can also log messages using Laravel's built-in logging channels:

To configure Laravel to use this handler, update config/logging.php:

Running the Log Pruning Command

To remove logs marked as deletable, run the following command:

Alternatively, you can schedule this command in your app/Console/Kernel.php:

History Usage

History Log is simple to use. When you call HistoryableTrait into your model classes whose history you want to monitor, History Log will start to keep history for your model.

If you want to exclude some columns from this, add this variable to your model class globally and write the column names as an array.

If you don't want to keep history in some model events, add the following variable. Currently, this version only keeps the history of create, update and delete events.

Id action table model model_id column old_value new_value user_id ip_address
1 created orders App\Models\Order 5 [["order_code"],["price"],["total_price"]] [{"order_code":"ABC"},{"price":"20"},{"total_price":"20"}] [{"order_code":"ABCD"},{"price":"30"},{"total_price":"60"}] 2 177.77.0.1

Running the History Pruning Command

To delete old history records based on their created_at timestamp, you can run the following Artisan command:

Replace {days} with the number of days you want to retain. For example, to delete all history records older than 30 days:

Running the Queue Worker

Since logs and history are queued using onQueue('logiaudit'), you need to run a dedicated queue worker:

To run the queue worker in the background and ensure it stays active, consider using supervisor or systemd.

License

The LogiAudit package is open-sourced software licensed under the MIT License.


All versions of logiaudit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2||^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.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 aurorawebsoftware/logiaudit contains the following files

Loading the files please wait ....