Download the PHP package herca/activity-log without Composer

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

Herca Activity Log

A lightweight Laravel package for recording model activity logs, both automatically and manually.

Features

Installation

Install the package with Composer in your Laravel application:

Register the service provider if your Laravel version does not support package auto-discovery.

Publish Assets

Publish the configuration:

Publish the migration:

Run migrations:

Basic Usage

Add the LogActivity trait to any Eloquent model you want to track.

Once attached, the model will automatically record activity for:

Manual Logging

You can also create manual activity entries using the helper:

If your model uses the provided contract/trait API, you can also log directly from the model:

Controlling Logging

You can enable or disable logging at runtime:

You can also manage ignored attributes:

Activity Model

The package stores logs with fields such as:

Each activity entry belongs to a subject through a polymorphic relation.

Request ID Resolution

The package resolves request_id in this order:

  1. get_request_id() helper when enabled
  2. Request headers such as X-Request-Id or X-Correlation-Id
  3. Request attribute request_id
  4. A generated ULID or ordered UUID

Events

An ActivityLogged event is dispatched whenever a new activity record is stored. You can listen to this event to trigger notifications, auditing workflows, or downstream processing.

Notes

License

This package is open-sourced under the MIT license.


All versions of activity-log with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0|^13.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 herca/activity-log contains the following files

Loading the files please wait ...