Download the PHP package pxlrbt/filament-activity-log without Composer

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

Filament Activity Log

Latest Version on Packagist GitHub Workflow Status Total Downloads

This package adds pages to the Filament Admin panel to view the activity log generated by spatie/laravel-activitylog.

Installation

Plugin Version Filament Version Activitylog PHP Version
0.1.x 2.x 4.x > 8.0
1.x 3.x 4.x > 8.1
2.x 4.x, 5.x 4.x > 8.1
3.x 5.x 5.x > 8.4

Install via Composer.

Requires PHP 8.1, Filament 4.0 or 5.0, and spatie/laravel-activitylog 4.7 or 5.0

Warning This plugin offers two pages: one listing activities on a subject (use ListActivitiesBySubject) and one listing activities caused by a record such as a user (use ListActivitiesByCauser). You need spatie/laravel-activitylog installed and configured for it to work. The subject page uses the LogsActivity trait's activitiesAsSubject() relation; the causer page uses the CausesActivity trait's activitiesAsCauser() relation.

Filament v4 Upgrade

Make sure you have a custom theme, add this line and recompile: @import '../../../../vendor/pxlrbt/filament-activity-log/resources/css/styles.css';

Usage

Make sure you use a custom theme and the vendor folder for this plugins is published, so that it includes the Tailwind CSS classes.

Listing activities for a subject

Use ListActivitiesBySubject to show all activities recorded on a record (e.g. every change to an order).

Setup spatie/laravel-activitylog

Make sure your resource model uses the LogsActivity trait.

Create a ListActivitiesBySubject page

Create the page inside your resource's Pages/ directory. Replace OrderResource with your resource.

Note The legacy class ListActivities is kept as an abstract alias of ListActivitiesBySubject, so existing subclasses continue to work.

Register the page

Add the page to your resource's getPages() method.

Listing activities caused by a record

Use ListActivitiesByCauser to show all activities a record (typically a user) has caused across every subject. Each row links to the affected subject's resource when one is registered.

Setup spatie/laravel-activitylog

Make sure your user model uses the CausesActivity trait.

Create a ListActivitiesByCauser page

Create the page inside your UserResource's Pages/ directory.

See https://spatie.be/docs/laravel-activitylog/v5/advanced-usage/logging-model-events for more information on the topic.

Register the page

Add the page to your resource's getPages() method.

Contributing

If you want to contribute to this packages, you may want to test it in a real Filament project:

Install the packages in your app's composer.json:

Now, run composer update.


All versions of filament-activity-log with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
filament/filament Version ^4.0|^5.0
spatie/laravel-activitylog Version ^5.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 pxlrbt/filament-activity-log contains the following files

Loading the files please wait ...