PHPackages                             abcsun/logviewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. abcsun/logviewer

ActiveLibrary[Framework](/categories/framework)

abcsun/logviewer
================

LogViewer Provides A LogViewer Admin Module For Laravel/Lumen 5

0.2.x-dev(11y ago)3161MITPHPPHP &gt;=5.4.7

Since Apr 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/abcsun/LogViewer)[ Packagist](https://packagist.org/packages/abcsun/logviewer)[ RSS](/packages/abcsun-logviewer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (7)Used By (0)

LogViewer for Laravel/ Lumen
============================

[](#logviewer-for-laravel-lumen)

本项目基于 [Laravel LogViewer](https://github.com/BootstrapCMS/LogViewer)开发，源项目为laravel开发，支持以日期方式读取查看log文件。在此基础上增加了Lumen LogViewer，用于查看lumen.log文件，同时增加了本地bootstrap和Jquery源，防止被墙：）

\###Lumen使用帮助 ####安装

- 使用`composer require abcsun/logviewer`安装
- 注册Lumen服务`$app->register(GrahamCampbell\LogViewer\LogViewerLumenServiceProvider::class); `
- 增加logviewer路由组

```
$app->group(['namespace' => 'GrahamCampbell\LogViewer\Http\Controllers'], function ($app) {
  $app->get('/logviewer/lumen/show', ['as' => 'logviewer.lumen.show', 'uses' => 'LogViewerController@getLumenShow']);
  $app->get('/logviewer/lumen/delete', ['as' => 'logviewer.lumen.delete', 'uses' => 'LogViewerController@getLumenDelete']);
  $app->get('/logviewer/lumen/{level}', ['as' => 'logviewer.lumen.data', 'uses' => 'LogViewerController@getLumenData']);
});
```

- 复制本组件中的样式文件夹assets/logviewer（安装后一般位于vendor/abcsun/logviewer/assets/logviewer）文件夹到主项目的public/assets下
- 复制本组件中的blade模板文件夹views/logviewer（安装后一般位于vendor/abcsun/logviewer/views/logviewer）文件夹到主项目的resources/views下
- 使用[http://youdomain/logviewer/lumen/show查看日志文件](http://youdomain/logviewer/lumen/show%E6%9F%A5%E7%9C%8B%E6%97%A5%E5%BF%97%E6%96%87%E4%BB%B6)

使用截图如下 [![](https://camo.githubusercontent.com/591e3e8ee4794ac389769c27531d580fc3a5b757dc26948947df5f51b21209a5/687474703a2f2f69342e74696574756b752e636f6d2f666336613632643336316561656461322e706e67)](https://camo.githubusercontent.com/591e3e8ee4794ac389769c27531d580fc3a5b757dc26948947df5f51b21209a5/687474703a2f2f69342e74696574756b752e636f6d2f666336613632643336316561656461322e706e67)

\###Laravel使用帮助 Laravel LogViewer was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and provides a LogViewer admin module for [Laravel 5](http://laravel.com). Feel free to check out the [releases](https://github.com/BootstrapCMS/LogViewer/releases), [license](LICENSE), and [contribution guidelines](CONTRIBUTING.md).

Installation
------------

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.6+, and [Composer](https://getcomposer.org) are required.

To get the latest version of Laravel LogViewer, simply add the following line to the require block of your `composer.json` file:

```
"graham-campbell/logviewer": "~1.0"

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel LogViewer is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key.

- `'GrahamCampbell\LogViewer\LogViewerServiceProvider'`

Configuration
-------------

[](#configuration)

Laravel LogViewer supports optional configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/logviewer.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are two config options:

##### Middleware

[](#middleware)

This option (`'middleware'`) defines the middleware to be put in front of the endpoints provided by this package. A common use will be for your own authentication middleware. The default value for this setting is `[]`.

##### Per Page

[](#per-page)

This option (`'per_page'`) defines defines how many log entries are displayed per page. The default value for this setting is `20`.

##### Layout

[](#layout)

This option (`'layout'`) defines the layout to extend when building views. The default value for this setting is `'layouts.default'`.

Usage
-----

[](#usage)

Laravel LogViewer is designed to work with [Bootstrap CMS](https://github.com/BootstrapCMS/CMS). In order for it to work in any Laravel application, you must ensure that you know how to use my [Laravel Core](https://github.com/GrahamCampbell/Laravel-Core) package as configuration and knowledge of the `app:install` and `app:update ` commands is required.

Laravel LogViewer will register four routes. The only one of interest to you is `'logviewer'` (`logviewer.index`) as it will be the main entry point for the use of this package. You can checkout the other three routes in the [source](https://github.com/BootstrapCMS/LogViewer/blob/master/src/routes.php) if you must.

License
-------

[](#license)

Laravel LogViewer is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~54 days

Total

6

Last Release

4024d ago

PHP version history (2 changes)v0.1.0-alphaPHP &gt;=5.4.7

v0.3.0-alphaPHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/41250730b73e5a266aa51d26064c9923ce114705be20ff10c4797358af45fc67?d=identicon)[abcsun](/maintainers/abcsun)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (138 commits)")[![abcsun](https://avatars.githubusercontent.com/u/1784061?v=4)](https://github.com/abcsun "abcsun (2 commits)")

---

Tags

frameworklaravelGraham CampbellGrahamCampbelllog viewerlogviewerLaravel LogViewer

### Embed Badge

![Health badge](/badges/abcsun-logviewer/health.svg)

```
[![Health](https://phpackages.com/badges/abcsun-logviewer/health.svg)](https://phpackages.com/packages/abcsun-logviewer)
```

###  Alternatives

[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.4k7.0M58](/packages/graham-campbell-markdown)[graham-campbell/exceptions

Provides A Powerful Error Response System For Both Development And Production

5861.2M3](/packages/graham-campbell-exceptions)[graham-campbell/security

Security Is An Anti-XSS Wrapper For Laravel

2491.4M3](/packages/graham-campbell-security)[graham-campbell/digitalocean

DigitalOcean Is A DigitalOcean Bridge For Laravel

509336.8k2](/packages/graham-campbell-digitalocean)[graham-campbell/binput

Binput Is An Input Protector For Laravel

181497.7k8](/packages/graham-campbell-binput)[graham-campbell/bitbucket

Bitbucket Is A Bitbucket Bridge For Laravel

77180.2k2](/packages/graham-campbell-bitbucket)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
