Download the PHP package kadiaak/log-viewer without Composer

On this page you can find all versions of the php package kadiaak/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 for Laravel

A beautiful, fast and self-contained log viewer for your Laravel application โ€” built with Blade, Alpine.js and Tailwind CSS. Inspired by opcodesio/log-viewer.

Requirements

Installation

That's it. Visit /log-viewer in your browser.

By default the viewer is only reachable in the local environment. To open it elsewhere, define a gate (see Authorization).

Publishing the config (optional)

Authorization

Access is controlled by a viewLogViewer gate. Define it in your app/Providers/AppServiceProvider.php (or AuthServiceProvider):

You may also attach your own middleware in the config (route.middleware), e.g. ['web', 'auth'].

Configuration

The most useful options (see config/log-viewer.php for everything):

Key Description Default
enabled Master switch for the whole package true
route.prefix URL prefix for the UI & API log-viewer
route.middleware Middleware applied to all routes ['web']
include_files Glob patterns of files to list storage/logs/**/*.log
exclude_files Glob patterns to skip []
per_page Entries per page 50
max_log_size Skip parsing files larger than this (bytes) 150 MB
allow_delete Show clear/delete buttons true
allow_download Allow downloading files true
theme system, light or dark system

All boolean/scalar options can be driven by environment variables, e.g. LOG_VIEWER_ENABLED, LOG_VIEWER_PREFIX, LOG_VIEWER_THEME.

Programmatic usage

Development

The shipped assets in resources/dist are pre-compiled. To work on the UI:

Run the test suite:

Preview the UI against sample data:

License

MIT โ€” see LICENSE.md.


All versions of log-viewer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^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 kadiaak/log-viewer contains the following files

Loading the files please wait ...