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

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

kamisama/monolog-init
=====================

Very basic and light Dependency Injector Container for Monolog

0.2.1(11y ago)0955.6k↓27.2%106MITPHPPHP &gt;=5.3.0

Since Jun 20Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (6)

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
- Stream
- Redis

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

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~293 days

Total

3

Last Release

4174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2935823cb9658334ccbba85d6a2be151d54ac52e1a6981b79b27a263e48320b1?d=identicon)[wa0x6e](/maintainers/wa0x6e)

---

Top Contributors

[![wa0x6e](https://avatars.githubusercontent.com/u/495709?v=4)](https://github.com/wa0x6e "wa0x6e (10 commits)")[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (1 commits)")[![rednut](https://avatars.githubusercontent.com/u/1188531?v=4)](https://github.com/rednut "rednut (1 commits)")

---

Tags

log

### Embed Badge

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

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

###  Alternatives

[symfony/monolog-bundle

Symfony MonologBundle

2.9k262.9M1.8k](/packages/symfony-monolog-bundle)[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k203.8M356](/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)[mhcg/monolog-wp-cli

Extension for Monolog to support outputting to WP-CLI (The WordPress command line interface) when running wp command lines.

10112.6k1](/packages/mhcg-monolog-wp-cli)[jacklul/monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format

2471.4k2](/packages/jacklul-monolog-telegram)

PHPackages © 2026

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