Download the PHP package netojose/laravel-log-viewer without Composer

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

netojose/laravel-log-viewer

A Laravel 11+ package for viewing, filtering, downloading and clearing application log files — directly in the browser.

Features


Requirements


Installation

The service provider is registered automatically via Laravel's package auto-discovery.

Publish the config (optional)

This copies config/log-viewer.php to your application's config directory.

Publish the views (optional)


Usage

After installation, visit:


Configuration


Authorization

By default, the viewLogViewer gate allows access only in the local environment. In any other environment (staging, production) access is denied with a 403.

To customize access, define the gate in your AppServiceProvider (or any service provider):

To allow access for guests (unauthenticated users), accept a nullable user:

To disable gate checks entirely, set 'gate' => null in your config.


Adding extra log files

Any entry in the logs config key becomes available in the log viewer:

Security note: Only files explicitly listed in the config can be accessed. User input is never used to derive file paths.


Available Routes

Method URI Name Description
GET /log-viewer log-viewer.index List all log files
GET /log-viewer/{file} log-viewer.show View log entries (?level=ERROR&page=2)
GET /log-viewer/{file}/download log-viewer.download Download log file
DELETE /log-viewer/{file} log-viewer.destroy Clear (truncate) log file

Disabling the package

Set the environment variable:

Routes will not be registered and the viewer will return 404.


License

MIT


All versions of laravel-log-viewer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^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 netojose/laravel-log-viewer contains the following files

Loading the files please wait ...