PHPackages                             webtotal/monolog-init - 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. webtotal/monolog-init

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

webtotal/monolog-init
=====================

Very basic and light Dependency Injector Container for Monolog

0.1.2(11y ago)03.7k1MITPHPPHP &gt;=5.3.0

Since Jun 20Pushed 11y ago2 watchersCompare

[ Source](https://github.com/webtotal/Monolog-Init)[ Packagist](https://packagist.org/packages/webtotal/monolog-init)[ Docs](http://www.github.com/kamisama/monolog-init/)[ RSS](/packages/webtotal-monolog-init/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Monolog-Init
============

[](#monolog-init)

Very basic and light Dependency Injector Container for Monolog

Helps create the following handler

- Cube
- RotatingFile
- ChromePHP
- Syslog
- Socket
- MongoDB
- CouchDB
- HipChat
- PushOver
- ZendMonitor

from 2 strings : `` ``

The second argument will be split, and pass to the handler `__construct()`.

Usage
-----

[](#usage)

Download and include the MonologInit class in your code, or install it via Composer.

Usage example :

```
$logger = new MonologInit('Cube', 'udp://127.0.0.1:1080');

```

To pass more than one parameter, separate them with a comma

```
$logger = new MonologInit('Cube', 'udp://127.0.0.1:1080,0,1');

```

And use it like that :

```
$logger->getInstance()->addInfo('hi ! This is my first log');

```

Where to use
------------

[](#where-to-use)

This container is usefull for creating remote log, for instance via CLI, where you can't pass object.

There is already a SymfonyBundle that does the same thing, but it's … very heavy.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~347 days

Total

2

Last Release

4366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88abfd317eabed66d5f770f8c13ec4d518bda10b5bc4502cabaa206d845daf62?d=identicon)[webtotal](/maintainers/webtotal)

---

Top Contributors

[![wa0x6e](https://avatars.githubusercontent.com/u/495709?v=4)](https://github.com/wa0x6e "wa0x6e (6 commits)")[![kamilkowalski](https://avatars.githubusercontent.com/u/801356?v=4)](https://github.com/kamilkowalski "kamilkowalski (2 commits)")

---

Tags

log

### Embed Badge

![Health badge](/badges/webtotal-monolog-init/health.svg)

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

###  Alternatives

[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.6M70](/packages/amphp-log)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)

PHPackages © 2026

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