PHPackages                             lucite/mocklogger - 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. lucite/mocklogger

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

lucite/mocklogger
=================

v0.0.3(1y ago)082MITPHP

Since Sep 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/octoth0rpe/LuciteMockLogger)[ Packagist](https://packagist.org/packages/lucite/mocklogger)[ RSS](/packages/lucite-mocklogger/feed)WikiDiscussions main Synced 2d ago

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

lucite/mocklogger
=================

[](#lucitemocklogger)

A simple psr3 implementation meant for unit testing.

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

[](#installation)

`composer require lucite/mocklogger`

Usage
-----

[](#usage)

Instead of writing messages somewhere, all messages are pushed onto an array (-&gt;logs). Messages are prepended with `[$LEVEL]` where $LEVEL is the all caps name of the function used to log the message. The $context arg is simply json\_encoded and appended onto the message.

There are a number of handy utility functions that could be useful for testing:

- `->count()` returns the number of messages that have been logged.
- `->reset()` clears the log array.
- `->last()` returns the most recently logged message

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity32

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

Total

3

Last Release

648d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lucite-mocklogger/health.svg)

```
[![Health](https://phpackages.com/badges/lucite-mocklogger/health.svg)](https://phpackages.com/packages/lucite-mocklogger)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M335](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[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)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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