Download the PHP package mikailfaruqali/log-viewer without Composer

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

๐Ÿ“‹ Snawbar Log Viewer

License: MIT PHP Version Laravel

A modern, elegant, and feature-rich log viewer for Laravel applications. Experience a beautiful glassmorphism-inspired interface that makes viewing and managing your application logs both intuitive and visually appealing.

โœจ Features

๐ŸŽจ Modern UI/UX

๐Ÿ“ File Management

๐Ÿ“Š Log Parsing & Display

๐Ÿ” Enhanced Viewing Experience

๐Ÿ” Security & Access Control

โšก Performance & Reliability

๐Ÿ› ๏ธ Developer Experience

๐Ÿš€ Installation

Requirements: PHP 8.3+ and Laravel 11+

Install the package via Composer:

The package uses Laravel's auto-discovery feature, so no additional setup is required.

โš™๏ธ Configuration

Basic Configuration

The package works out-of-the-box, but you can publish the configuration file for customization:

This creates a config/snawbar-log-viewer.php file:

Advanced Configuration

Custom Route Path:

Custom Middleware:

Role-based Access:

View Customization

Publish the views to customize the interface:

This publishes views to resources/views/vendor/snawbar-log-viewer/ for customization.

๐Ÿ“– Usage

Accessing the Log Viewer

After installation, navigate to the configured route:

Note: You must be authenticated to access the log viewer (default middleware: ['web', 'auth'])

Interface Overview

  1. Sidebar: Lists all available log files, sorted by modification date
  2. Main Panel: Displays log entries for the selected file
  3. Log Entries: Click to expand and view full messages and stack traces
  4. Delete Button: Remove old log files (with confirmation)

Log Entry Features

Each log entry displays:

Mobile Experience

The interface is fully responsive:

๐ŸŽจ Screenshots

Desktop View

The main interface showing log files in the sidebar and expanded log entries:

๐Ÿ”ง Advanced Usage

Custom Middleware

Create custom middleware for role-based access:

Register and use the middleware:

Integration with Laravel Gates

Use Laravel's authorization gates:

Environment-Specific Configuration

Configure different access rules per environment:

๐Ÿงช Log Format Support

The package supports both Laravel log formats simultaneously in the same file:

Classic Text Format

JSON Format (Monolog JsonFormatter)

To use the JSON formatter in your Laravel application, configure your config/logging.php:

Supported Log Levels

Level Color Description
๐Ÿ” DEBUG Gray Detailed debug information
โ„น๏ธ INFO Blue General information messages
โ„น๏ธ NOTICE Blue Normal but significant events
โš ๏ธ WARNING Yellow Warning messages
โŒ ERROR Red Error conditions
๐Ÿšจ CRITICAL Dark Red Critical conditions
๐Ÿšจ ALERT Dark Red Action must be taken immediately
๐Ÿ†˜ EMERGENCY Purple System is unusable

๐Ÿ›ก๏ธ Security Considerations

Production Environment

For production use, implement strict access controls:

IP Restriction

Add IP-based restrictions:

Audit Logging

Log access to the log viewer:

๐Ÿ› Troubleshooting

Common Issues

1. "No log files found"

2. "Access denied" or 403 errors

3. Empty or garbled log entries

4. Performance issues with large log files

Debug Mode

Enable debug logging for troubleshooting:

๐Ÿ”„ Log Rotation & Maintenance

Automatic Cleanup

Set up automatic log cleanup:

File Size Management

Monitor and manage large log files:

๐Ÿค Contributing

We welcome contributions! Please see our contributing guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

๐Ÿ“š API Reference

Services

LogFileService

LogParserService

LogEntry (Data Object)

Routes

Method URI Action Description
GET /logs LogViewerController@index Display log viewer interface
DELETE /logs/delete LogViewerController@delete Delete a log file

๐Ÿ“„ License

This package is open-sourced software licensed under the MIT License.

๐Ÿ‘จโ€๐Ÿ’ป Author

Mikail Faruq Ali

๐Ÿ™ Acknowledgments


โญ If you find this package useful, please give it a star on GitHub! โญ


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
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 mikailfaruqali/log-viewer contains the following files

Loading the files please wait ...