Download the PHP package souravmsh/audit-trail without Composer

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

AuditTrail a Laravel package for managing audit logs

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads lICENSE


Audit Trail is a Laravel package that provides an easy-to-use mechanism for maintaining table row audit logs. It automatically tracks changes to database records, including created, updated, and deleted events, making it easier to monitor data modifications and user activities.

Installation

1. You can install the package via Composer:

2. Alternatively, you can install it manually:

Create directories:

Clone git repository:

Add below lines to laravel/composer.json file:

Then,

3. Publish and Run Migrations

To publish and run the migrations, use:

This will create the necessary database tables for logging audit records.

Usage

1. Logging Audit Data

You can manually log audit records using the AuditTrail facade:

Log an audit trail entry using the AuditTrail package.

This example demonstrates how to log changes made to a specific model. The audit log captures details such as the type of action performed, the model being updated, the changed data, and the user responsible.

Parameters:

2. Access model directly

3. Retrieving Audit History

To fetch the audit log for a specific model:

4. Blade Component for Displaying Audit Logs:-

You can use the built-in Blade component widget to display audit logs in your UI:

Blade Component for Displaying Audit Logs

This component is used to display audit trail logs in the UI. You can configure various parameters to filter and control the displayed logs.

Parameters:

also, you can pass request query parameters:

5. Adding Custom Styles

To ensure the audit trail widget looks great, include the custom CSS file in your Blade template. Add the following <link> tag to the <head> section of your template:

Testing

Run tests using:

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.


All versions of audit-trail with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0 || ^11.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 souravmsh/audit-trail contains the following files

Loading the files please wait ....