PHPackages                             ali-eltaweel/logger - 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. ali-eltaweel/logger

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

ali-eltaweel/logger
===================

Logger

2.0.0(6mo ago)0355PHPPHP ^8.2

Since Oct 29Pushed 6mo agoCompare

[ Source](https://github.com/ali-eltaweel/logger)[ Packagist](https://packagist.org/packages/ali-eltaweel/logger)[ RSS](/packages/ali-eltaweel-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (5)

Logger
======

[](#logger)

- [Logger](#logger)
    - [Installation](#installation)
    - [Usage](#usage)

---

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

[](#installation)

Install *logger* via Composer:

```
composer require ali-eltaweel/logger
```

---

Usage
-----

[](#usage)

```
$driver = Logger\Driver\Driver::fromCallable('info|warning', function (LogRecord $record): void {

  echo json_encode($record->toArray()) . "\n";
});

$logger = new Logger\Logger($driver);
```

```
class LogSubject {

  public function __construct(private Logger\Logger $logger) {}

  public function doSomething(): void {

    $this->logger->info(fn() => ['Doing something important' => ['time' => time()]], static::class, spl_object_id($this));

    // $this->logger->log(LogLevel::INFO, fn() => ['Doing something important' => ['time' => time()]], static::class, spl_object_id($this));
  }
}

$subject = new LogSubject($logger);

$subject->doSomething();
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance67

Regular maintenance activity

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

193d ago

Major Versions

1.1.0 → 2.0.02025-10-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/7564e10ba11b25d8700726a92f669e38be2ff9191e8f6ccdfafc36678ffab2b8?d=identicon)[ali-eltaweel](/maintainers/ali-eltaweel)

---

Top Contributors

[![ali-eltaweel](https://avatars.githubusercontent.com/u/45892756?v=4)](https://github.com/ali-eltaweel "ali-eltaweel (3 commits)")

### Embed Badge

![Health badge](/badges/ali-eltaweel-logger/health.svg)

```
[![Health](https://phpackages.com/badges/ali-eltaweel-logger/health.svg)](https://phpackages.com/packages/ali-eltaweel-logger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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