Download the PHP package ianm/log-viewer without Composer

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

Log Viewer

License Latest Stable Version Total Downloads

Easily view your Flarum logfiles from within the admin interface.

This extension exposes the contents of files found in {flarum_install_dir}/storage/logs (including subdirectories) directly in the admin panel, without needing SSH or command-line access to your server.

Note: Be careful when sharing log snippets — they may contain sensitive data such as user details, email addresses, or internal paths.

Features

Screenshots

log viewer log viewer mobile

Settings

Two settings are available on the extension's settings page:

Setting Default Description
Maximum Log File Size (MB) 1 Files exceeding this size are split into numbered parts daily. Set to 0 to disable splitting.
Purge logfiles after days 90 Log files older than this are deleted daily. Set to 0 to disable purging.

Both features rely on the Flarum scheduler being active.

Permissions

By default, only admins can access the log viewer. A View and manage logfiles permission is provided — you can grant it to a custom group if you need log access without full admin rights.

Never grant log access to regular users.

The permission can be set on the extension page or the global Permissions tab.

permission

API Usage

Two API endpoints are provided to enable log retrieval from external systems.

All requests must be authenticated as a user with the manageLogfiles permission.

List log files

Returns a list of all log files. Supports sorting via the sort query parameter:

Each item in the response includes a relativePath attribute (e.g. flarum.log or composer/output-2024-11-16.log) and an id field which is the base64url-encoded relative path.

Retrieve a log file

Returns the file's content. Use the id value from the list response.

Download a log file

Returns the raw file as an attachment.

Delete a log file

Installation

Requires Flarum 2.x.

Updating

Links


All versions of log-viewer with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^2.0.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 ianm/log-viewer contains the following files

Loading the files please wait ...