PHPackages                             thecodingmachine/monolog-universal-service-provider - 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. thecodingmachine/monolog-universal-service-provider

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

thecodingmachine/monolog-universal-service-provider
===================================================

Cross-framework module for monolog/monolog

1.1.x-dev(7y ago)022MITPHPPHP &gt;=7.1

Since Sep 22Pushed 7y ago7 watchersCompare

[ Source](https://github.com/thecodingmachine/monolog-universal-service-provider)[ Packagist](https://packagist.org/packages/thecodingmachine/monolog-universal-service-provider)[ RSS](/packages/thecodingmachine-monolog-universal-service-provider/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/4d76c187a8871bd025fdd5a5a8afc565b89856ce7e6068d2525c0122f289e6f9/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f6d6f6e6f6c6f672d756e6976657273616c2d736572766963652d70726f76696465722f762f737461626c65)](https://packagist.org/packages/thecodingmachine/monolog-universal-service-provider)[![Latest Unstable Version](https://camo.githubusercontent.com/33327ba5ef3f373efad72b723ec509c060b0ef4a0e9c2959201f72ebb977d68b/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f6d6f6e6f6c6f672d756e6976657273616c2d736572766963652d70726f76696465722f762f756e737461626c65)](https://packagist.org/packages/thecodingmachine/monolog-universal-service-provider)[![License](https://camo.githubusercontent.com/757fe86729f8d9eb316fd81082a46b19fe7c73a78da1fa253a6e47239b62e0a0/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f6d6f6e6f6c6f672d756e6976657273616c2d736572766963652d70726f76696465722f6c6963656e7365)](https://packagist.org/packages/thecodingmachine/monolog-universal-service-provider)

Monolog universal module
========================

[](#monolog-universal-module)

This package integrates Monolog in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/monolog-universal-service-provider

```

Once installed, you need to register the [`TheCodingMachine\Monolog\MonologServiceProvider`](src/MonologServiceProvider.php) into your container.

If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider is meant to integrate [Monolog](https://github.com/Seldaek/monolog) into any container compatible with container-interop/service-provider.

By default, this package creates a logger that logs in the PHP error log but you can easily add/change handlers.

Expected values / services
--------------------------

[](#expected-values--services)

This *service provider* expects the following configuration / services to be available:

NameCompulsoryDescription`monologHandlers`*no*An array of Monoog handlers. If not set, a default `ErrorLogHandler` will be used to log in the error log.Provided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`Monolog\Logger`the Monolog logger`Psr\Log\LoggerInterface`This is a simple alias to the Monolog loggerExtended services
-----------------

[](#extended-services)

*None*

Project template courtesy of [thecodingmachine/service-provider-template](https://github.com/thecodingmachine/service-provider-template)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

2809d ago

PHP version history (2 changes)1.0.x-devPHP &gt;=7.0

1.1.x-devPHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thecodingmachine-monolog-universal-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/thecodingmachine-monolog-universal-service-provider/health.svg)](https://phpackages.com/packages/thecodingmachine-monolog-universal-service-provider)
```

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M517](/packages/illuminate-log)[neeckeloo/newrelic

NewRelic module for Laminas

32207.2k](/packages/neeckeloo-newrelic)[nikolaposa/monolog-factory

Configuration-based Monolog factory

25226.9k2](/packages/nikolaposa-monolog-factory)[oras/monolog-middleware

PSR-7 Monolog Middleware

2012.1k](/packages/oras-monolog-middleware)

PHPackages © 2026

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