PHPackages                             deprecationsio/monolog-handler - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. deprecationsio/monolog-handler

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

deprecationsio/monolog-handler
==============================

Monolog handler integrating deprecations.io with Monolog

0.0.9(2y ago)27911MITPHPPHP &gt;=5.3

Since Dec 11Pushed 2y agoCompare

[ Source](https://github.com/deprecationsio/monolog-handler)[ Packagist](https://packagist.org/packages/deprecationsio/monolog-handler)[ RSS](/packages/deprecationsio-monolog-handler/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (11)Used By (1)

deprecationsio/monolog-handler
==============================

[](#deprecationsiomonolog-handler)

deprecationsio/monolog-handler is a Monolog handler integrating [deprecations.io](https://github.com/deprecationsio/deprecations.io)with Monolog applications.

deprecations.io is a plug-and-play service to monitor and update your usages of deprecated features from your vendors, keeping your code ready for every major version to come.

Keeping your code up-to-date was never this easy!

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

[](#installation)

deprecationsio/monolog-handler requires PHP 5.3+.

```
composer require deprecationsio/monolog-handler

```

Usage
-----

[](#usage)

This library provides a Monolog handler for Monolog 1, 2 and 3.

To use it manually, use the following code:

```
use Deprecationsio\Monolog\Client\CurlDeprecationsioClient;
use Deprecationsio\Monolog\Handler\MonologV1Handler;
use Deprecationsio\Monolog\Handler\MonologV2Handler;
use Deprecationsio\Monolog\Handler\MonologV3Handler;
use Monolog\Logger;

$logger = new Logger('app', [
    // Monolog 1
    new MonologV1Handler(''),

    // Monolog 2
    new MonologV2Handler(''),

    // Monolog 3
    new MonologV3Handler(''),
]);

// Log a deprecation
// A deprecation must contain an exception that will be used by developers to understand the stacktrace
$logger->notice('User Deprecated: ...', [
    'exception' => $this->createDeprecationException(),
]);
```

You can also use the provided class name resolver to load the handler dynamically depending on the Monolog version you are using:

```
use Deprecationsio\Monolog\MonologHandlerClassNameResolver;

$handlerName = MonologHandlerClassNameResolver::resolveHandlerClassName();

$logger = new Logger('app', [
    new $handlerName(''),
]);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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 ~6 days

Recently: every ~12 days

Total

9

Last Release

882d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf5cd47f55eb8a801bab7ce80901bada792f1d5fef54678852b118e189e92606?d=identicon)[tgalopin](/maintainers/tgalopin)

---

Top Contributors

[![tgalopin](https://avatars.githubusercontent.com/u/1651494?v=4)](https://github.com/tgalopin "tgalopin (45 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deprecationsio-monolog-handler/health.svg)

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

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M358](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2587.9k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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