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

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

lxpgw/logger
============

Send log via pubu.im

1.0.0(10y ago)012MITPHPPHP &gt;=5.4.0

Since Mar 28Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

Logger
======

[](#logger)

[![Build Status](https://camo.githubusercontent.com/eb336273f3d85ee025c9ba43a4346ac84ad327a9fc1934ecb08ef7e4705cf812/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c787067772f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/lxpgw/logger)[![version](https://camo.githubusercontent.com/d32aada25c4b1bcb0caf1b239341313689c0f7bacadbadef00a937a6bfe57dfd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c787067772f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lxpgw/logger)[![Download](https://camo.githubusercontent.com/a412f8b130b0a8f5153088b74d2b9c617f31eceab3ee0f1449cab4a338020445/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c787067772f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lxpgw/logger)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e804b9bf825ba688363fa45e07d47256e8006f9367d8815527fb963c7cd5a730/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c787067772f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lxpgw/logger)[![Code Coverage](https://camo.githubusercontent.com/431d7d93abec166926e01b91a83296d981324834efa9e4251b17fdfd5d5b9fc0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c787067772f6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lxpgw/logger)[![Contact](https://camo.githubusercontent.com/75bf8da95e146782f05a9a4c946f35fed67adbea1b2bf3c15eef0f69be64c8d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776569626f2d406368756e7169616e672d626c75652e7376673f7374796c653d666c61742d737175617265)](http://weibo.com/chunqiang)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist lxpgw/logger "~1.0.0"

```

or add

```
"lxpgw/logger": "~1.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

### send message directly

[](#send-message-directly)

```
$pubu = new \lxpgw\logger\Pubu(['remote' => 'your pubu.im service url']);
$logger->send('Hello');

//with attachments
$pubu->send('Hello', [
    ['title' => 'This is title', 'description' => 'This is description.']
]);

```

### with the `log` component

[](#with-the-log-component)

```
[
    'log' => [
        'targets' => [
            'class' => \lxpgw\logger\LogTarget,
            'chanel' => 'the pubu.im service url', // Config the channel you want send to.
            'exportInterval' => 1, //send per message directly
            'logVars' => [],
        ]
    ]
]

```

Tests
-----

[](#tests)

```
$ composer test

```

Change Log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

License
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

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

---

Tags

loggerpubu

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[amphp/log

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

402.6M70](/packages/amphp-log)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[bref/logger

All you need to log with Bref on AWS Lambda

331.5M8](/packages/bref-logger)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)

PHPackages © 2026

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