Download the PHP package kerodev/filament-logger without Composer

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

[!NOTE] This is a fork of Z3d0X/filament-logger with Filament 4 support. Now maintained by keroles19 with improvements and bug fixes.

Activity logger for filament

Latest Version on Packagist Total Downloads

Configurable activity logger for filament. Powered by spatie/laravel-activitylog

Features

You can choose what you want to log and how to log it.

Note: By default this package will log Filament Resource Events, Access(Login) Events, and Notification Events. If you want to log a model that is not a FilamentResource you will have to manually register in the config file.

Development (Git hooks)

This repo includes a commit-msg hook that removes any Made-with: Cursor line from commit messages so it is never stored in history (some editors append that automatically).

After cloning, run once from the package root:

Or manually:

If a commit tool bypasses hooks, you can still amend with hooks disabled only when needed: git -c core.hooksPath=/path/to/empty/dir commit --amend ….

Installation

Plugin Version Filament Version
<= 0.5.x ^2.11
0.6.x - 0.8.x 3.x
>= 1.0 4.x

This package uses spatie/laravel-activitylog, instructions for its setup can be found here

You can install the package via composer:

After that run the install command:

This will publish the config & migrations from spatie/laravel-activitylog

Register the plugin in your PanelProvider:

Authorization

To enforce policies on ActivityResource, after generating a policy, you would need to register Spatie\Activitylog\Models\Activity to use that policy in the AuthServiceProvider.

If you are using Shield just register the ActivityPolicy generated by it

Translations

Publish the translations using:

Activity Model resolution

The main Activity class being used by the Filament Resource instance will be resolved by Spatie's service provider, which loads the model defined by the configuration key found at activitylog.activity_model in config/activitylog.php.

Configurable Activity resource & table UI

Publish config/filament-logger.php and adjust:

Avoiding duplicate rows (default + Resource + Model)

If you also use Spatie’s LogsActivity on models and leave resources.enabled and models.enabled on, the same save can create up to three activity rows (default, Resource, Model). Pick one CRUD pipeline per project, for example:

Keep access / notifications enabled if you still want login and notification logs.

Deleting activity rows (AuthorizesActivityDeletion)

Bulk and row deletes (when enabled in table.*_delete) are gated by Keroles\FilamentLogger\Contracts\AuthorizesActivityDeletion. The package binds a default implementation that denies all deletes.

In your app’s AppServiceProvider::register() (or a service provider that loads early), bind your own rules, for example:

You can also register an ActivityPolicy (see Authorization above) and delegate to Gate as in the example.

Screenshots

Activity logs (list)

Table with type, event, subject (including resolved names), user, and timestamps. Sortable columns.

Search, filters, and bulk actions

Global search, active filters (e.g. by user), row actions (view / delete), and bulk delete when enabled in config.

View activity log (detail)

Single log view with metadata and Old vs New attribute comparison (Spatie properties).

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of filament-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0
illuminate/contracts Version ^11.0 | ^12.0
laravel/pint Version ^1.0
spatie/laravel-activitylog Version ^4.5
spatie/laravel-package-tools Version ^1.13.5
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 kerodev/filament-logger contains the following files

Loading the files please wait ...