PHPackages                             pedrofornaza/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. pedrofornaza/monolog-mysql

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

pedrofornaza/monolog-mysql
==========================

Laravel 5 MySQL driver for Monolog

v0.1(10y ago)22.1k2MITPHPPHP &gt;=5.5.9

Since Mar 2Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

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

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

MySQL driver for Laravel Monolog.

### Installation

[](#installation)

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

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

```
"pedrofornaza/monolog-mysql": "v0.1"

```

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(
    // ...
    Fornaza\Laravel\Provider\MonologMysqlHandlerServiceProvider::class,
);

```

Publish config using artisan CLI.

```
php artisan vendor:publish

```

Migrate tables.

```
php artisan migrate

```

Usage
-----

[](#usage)

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

Or in `bootstrap/app.php`:

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

Credits
-------

[](#credits)

Based on:

- [MonoSQL](https://github.com/teepluss/laravel4-monosql)

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3672d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/655ecdafe55c4fe42a99e245005d23583bf1fd9656b6e4882c6d0339595963d9?d=identicon)[pedrofornaza](/maintainers/pedrofornaza)

---

Top Contributors

[![pedrofornaza](https://avatars.githubusercontent.com/u/1180994?v=4)](https://github.com/pedrofornaza "pedrofornaza (2 commits)")

---

Tags

loglaravelmysqllaravel5monolog

### Embed Badge

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

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

###  Alternatives

[markhilton/monolog-mysql

Laravel 8 MySQL driver for Monolog

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

A handler for Monolog that sends messages to MySQL

140877.6k6](/packages/wazaari-monolog-mysql)[danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.

135910.2k1](/packages/danielme85-laravel-log-to-db)[itelmenko/laravel-mysql-logger

Laravel MySQL driver for Monolog

23140.1k](/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.

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

PHPackages © 2026

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