Download the PHP package nsd7/laravel-activitylog-ui without Composer

On this page you can find all versions of the php package nsd7/laravel-activitylog-ui. 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 laravel-activitylog-ui

Laravel Activity Log UI

A beautiful, drop-in Tailwind CSS dashboard for Spatie Laravel Activitylog. Browse, filter, diff, analyse and export the audit trail of your Laravel application — with analytics charts, a timeline, saved views, dark mode and a read-only JSON API. No build step, no Node, no npm.

Latest Version Tests Downloads Author


Table of contents


Why this package

Features

Requirements

Quickstart

That's it — visit /admin/activity-log while logged in.

Make sure Spatie's activity_log table exists (see the Spatie installation guide). Optionally publish the config and run the extras:

By default the dashboard is protected by the web and auth middleware. Define a gate (below) to restrict it further.

Configuration

After publishing, everything lives in config/activitylog-ui.php:

Key Default Description
enabled true Master switch. When off, no routes are registered.
route.prefix admin/activity-log URL prefix (env ACTIVITYLOG_UI_PATH).
route.domain null Optional domain (env ACTIVITYLOG_UI_DOMAIN).
route.middleware ['web', 'auth'] Middleware applied to all routes.
gate viewActivityLogUi Gate checked when defined.
access.allowed_users [] Allow-list of user ids or emails (enforced when non-empty).
access.allowed_roles [] Allow-list of role names (enforced when non-empty).
features.analytics true Analytics dashboard + data endpoint.
features.timeline true Timeline view toggle.
features.saved_views true Saved views (needs the migration).
features.live_counts false Background-refresh the statistics total.
features.api false Read-only JSON API.
per_page / per_page_options 15 / [10,15,25,50,100] Pagination.
search_driver like like (portable) or fulltext (MySQL/MariaDB).
causer_display_attributes ['name','full_name','username','email'] First non-empty wins.
date_format Y-m-d H:i:s Timestamp display format.
show_stats true Show the statistics cards.
analytics.cache_ttl 3600 Seconds to cache the analytics payload (0 = off).
analytics.range_days 30 Default window of the "activity over time" chart.
live_counts.poll_interval 15 Seconds between live-count refreshes.
saved_views.max_per_user 50 Cap per user.
export.enabled true Allow exports.
export.limit 10000 Max rows written per export.
export.formats ['csv','json','xlsx','pdf'] Formats offered in the UI.

Analytics dashboard

Open the Analytics tab for charts computed from the currently filtered logs: activity over time, counts by event and by log name, and the top causers and subjects. The payload is cached per filter set (analytics.cache_ttl) and the date grouping is portable across MySQL, PostgreSQL, SQLite and SQL Server. Disable with features.analytics => false.

Timeline view

The Timeline tab renders the same filtered activities as a day-grouped vertical timeline — handy for scanning what happened and when. Disable with features.timeline => false.

Saved views

Save the current filter set a name and recall it with one click later. Views are scoped to the authenticated user. Run the published migration to create the activitylog_ui_saved_views table; until then the feature degrades gracefully and simply stays hidden.

Exports (CSV / JSON / Excel / PDF)

Export the currently filtered result in any configured format from the Export menu:

All exports are capped at export.limit rows and string values are neutralised against CSV/formula injection.

Performance indexes

For large tables, publish and run the optional index migration (included in activitylog-ui-migrations). It adds indexes on event, created_at and a composite (log_name, created_at) on top of Spatie's defaults, which speeds up filtering and ordering. Building indexes can briefly lock the table, so run it in a maintenance window.

Authorization & access control

Access is layered:

  1. Route middleware (web, auth by default).
  2. Gate — if a gate named by gate is defined, it must pass:

  3. Allow-lists (optional) — set access.allowed_users (ids or emails) and/or access.allowed_roles (works with hasRole(), getRoleNames(), e.g. spatie/laravel-permission). Each list is only enforced when non-empty, so the defaults change nothing.

JSON API

Enable features.api => true for a read-only API under your prefix:

It honours the same authorization as the UI and is ideal for SPAs, dashboards and automated agents.

Localization

Publish the language files with --tag=activitylog-ui-lang and translate lang/vendor/activitylog-ui/{locale}/messages.php. The UI uses your app locale automatically.

Custom activity model / connection

The UI resolves the activity model through Spatie, so a custom model or database connection configured in config/activitylog.php (activity_model) is picked up automatically — including a custom table name.

Testing

The suite runs against a Laravel 9→12 / PHP 8.1→8.4 matrix in CI.

Changelog

See CHANGELOG.md for what changed in each release.

License

The MIT License (MIT). See LICENSE.


All versions of laravel-activitylog-ui with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
spatie/laravel-activitylog Version ^4.0
laravel/framework Version ^9.0 || ^10.0 || ^11.0 || ^12.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 nsd7/laravel-activitylog-ui contains the following files

Loading the files please wait ...