PHPackages                             lichv/monolog-mysql - 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. [Database &amp; ORM](/categories/database)
4. /
5. lichv/monolog-mysql

ActiveLibrary[Database &amp; ORM](/categories/database)

lichv/monolog-mysql
===================

Laravel 5 MySQL driver for Monolog

0.5.0(9y ago)160MITPHPPHP &gt;=5.5.9

Since Mar 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lichv/monolog-mysql)[ Packagist](https://packagist.org/packages/lichv/monolog-mysql)[ Docs](https://github.com/lichv/monolog-mysql)[ RSS](/packages/lichv-monolog-mysql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Laravel Monolog MySQL Handler.
------------------------------

[](#laravel-monolog-mysql-handler)

MySQL driver for Laravel Monolog.

### Installation

[](#installation)

- [Packagist](https://packagist.org/packages/lichv/monolog-mysql)
- [GitHub](https://github.com/lichv/monolog-mysql)

To get the lastest version of Theme simply require it in your `composer.json` file.

```
"lichv/monolog-mysql": "dev-master"

```

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

Open up `config/app.php` and find the `providers` key.

```
'providers' => array(
    // ...
    'Logger\Laravel\Provider\MonologMysqlHandlerServiceProvider'
);

```

Publish config using artisan CLI.

```
php artisan config:publish lichv/monolog-mysql

```

Migrate tables.

```
php artisan migrate

```

Usage
-----

[](#usage)

```
Log::getMonolog()->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
```

Or in `bootstrap/app.php`:

```
$app->configureMonologUsing(function($monolog) use($app) {
    $monolog->pushHandler(new Logger\Monolog\Handler\MysqlHandler());
});
```

Credits
-------

[](#credits)

Based on:

- \[Pedro Fornaza\] ()

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

5

Last Release

3325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b7ccf2dd59504e060829498bb2125e1dd3db07c124192ac4767a49f04dc69b?d=identicon)[lichv](/maintainers/lichv)

---

Top Contributors

[![lichv](https://avatars.githubusercontent.com/u/19921475?v=4)](https://github.com/lichv "lichv (6 commits)")

---

Tags

loglaravelmysqllaravel5monolog

### Embed Badge

![Health badge](/badges/lichv-monolog-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/lichv-monolog-mysql/health.svg)](https://phpackages.com/packages/lichv-monolog-mysql)
```

###  Alternatives

[markhilton/monolog-mysql

Laravel 8 MySQL driver for Monolog

40140.8k](/packages/markhilton-monolog-mysql)[wazaari/monolog-mysql

A handler for Monolog that sends messages to MySQL

140884.1k6](/packages/wazaari-monolog-mysql)[itelmenko/laravel-mysql-logger

Laravel MySQL driver for Monolog

21141.9k](/packages/itelmenko-laravel-mysql-logger)[bradmkjr/monolog-wordpress

A handler for Monolog that sends messages to MySQL via WordPress Functions

2817.1k](/packages/bradmkjr-monolog-wordpress)[addapp/laravel-query-log

Logs full mysql queries.

135.4k](/packages/addapp-laravel-query-log)

PHPackages © 2026

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