Download the PHP package elkady/activity-logger without Composer

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

Laravel Activity Logger

A Laravel package for automatically logging authenticated users' actions (create, update, delete, restore) on any model using the HasActivityLogs trait.


Features


Installation

Install the package via Composer:

After installation you have to publish the config file

This will create a config file at:

then you have to migrate the added database:

Usage

Add HasActivityLogs to any model you want to track — that's what turns on logging for it, no config array required:

Every created, updated, deleted, and restored event on Post is now logged automatically, attributed to whichever guard-authenticated user performed it. Read them back via the relation the trait adds:

Reports & Filtering

ActivityLog ships with scopes so you can build reports without writing raw queries:

Report UI

The package includes an optional, self-contained report page — a filter bar (action, subject type, causer type, date range) plus a paginated table — with no front-end setup required. It's off by default. Turn it on in config/activity-logger.php:

The package has no opinion on who should be allowed to view the logs, so always add your own auth middleware (or a custom gate-based middleware) to ui.middleware before enabling it — otherwise the page is open to anyone who can reach the route.

Visit /activity-logs (or whatever ui.path is set to) to see it. To customize the look, publish the view:

Update the Config File

In config/activity-logger.php, list the guards to check for the current user and which lifecycle events to record:


All versions of activity-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^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 elkady/activity-logger contains the following files

Loading the files please wait ...