PHPackages                             boerl/zf1-log-psr3 - 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. boerl/zf1-log-psr3

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

boerl/zf1-log-psr3
==================

A wrapper around a Zend Framework 1 Logger to make it PSR-3 compatible.

v0.1.1(9y ago)215.5k1MITPHPPHP ^5.4 || ^7

Since Dec 20Pushed 9y agoCompare

[ Source](https://github.com/berlinger-rarents/zf1-log-psr3)[ Packagist](https://packagist.org/packages/boerl/zf1-log-psr3)[ RSS](/packages/boerl-zf1-log-psr3/feed)WikiDiscussions master Synced today

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

PSR-3 compliant wrapper for Zend Framework 1's Logger
=====================================================

[](#psr-3-compliant-wrapper-for-zend-framework-1s-logger)

Did you ever want to use your good old (fashioned) [ZF1 logger](https://framework.zend.com/manual/1.12/en/zend.log.html)in a modern loosely coupled library that expects a [PSR-3](http://www.php-fig.org/psr/psr-3/) compliant logger? Then this is the library for you. You can keep your existing logger (e.g. to share with other components of your software) and disguise it to feed it to the new library.

Features
--------

[](#features)

- PSR-3 style placeholders are rewritten to ZF1 style. E.g. `{example}` becomes `%example%`. (Can be disabled.)
- `logLevel` is added to the `extras` cq context array. (Can be disabled.)
- (Not directly related to the goal of this library, but useable for testing:) A very basic implementation of `Zend_Log_Writer_Abstract` is available: [`MemoryWriter`](src/MemoryWriter.php). It keeps the formatted logged messages in memory, to be retrieved later.

Usage
-----

[](#usage)

Require [this package](https://packagist.org/packages/boerl/zf1-log-psr3)with [composer](https://getcomposer.org/)and [use its autoloader](https://getcomposer.org/doc/01-basic-usage.md#autoloading).

```
// Start with your existing instance of Zend_Log.
$myZendLog = new \Zend_Log();

// Optionally create a configuration array.
$optionalConfig = ['foo' => 'bar'];

// Instantiate the Wrapper from the existing Zend_Log and optionally the configuration.
$myPsr3CompliantLogger = new \Boerl\Zf1LogPsr3\Wrapper($myZendLog, $optionalConfig);
```

For available configuration options, look at [`Wrapper::getDefaultConfig()`](src/Wrapper.php#L40).

Links
-----

[](#links)

- [michaelmoussa/zend-psr-log](https://github.com/michaelmoussa/zend-psr-log)
    Similar concept, but for [ZF2's Logger](https://github.com/zendframework/zend-log).
- [InterNations/ZendLogAdapterPsr3](https://github.com/InterNations/ZendLogAdapterPsr3)
    Similar concept, but reversed.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3481d ago

### Community

Maintainers

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

---

Top Contributors

[![berlinger-rarents](https://avatars.githubusercontent.com/u/22027226?v=4)](https://github.com/berlinger-rarents "berlinger-rarents (4 commits)")

---

Tags

logpsr-3zendwrapperfacadePSR3ZF1

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/boerl-zf1-log-psr3/health.svg)

```
[![Health](https://phpackages.com/badges/boerl-zf1-log-psr3/health.svg)](https://phpackages.com/packages/boerl-zf1-log-psr3)
```

###  Alternatives

[sentry/sentry

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

1.9k247.1M334](/packages/sentry-sentry)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)[pagemachine/typo3-formlog

Form log for TYPO3

23238.6k8](/packages/pagemachine-typo3-formlog)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2819.3k4](/packages/markrogoyski-simplelog-php)[lf4php/lf4php

This is a facade for logging frameworks.

1177.2k8](/packages/lf4php-lf4php)[alexandre-daubois/monolog-processor-collection

A collection of Monolog processors

1317.1k](/packages/alexandre-daubois-monolog-processor-collection)

PHPackages © 2026

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