PHPackages                             friendsofhyperf/access-log - 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. friendsofhyperf/access-log

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

friendsofhyperf/access-log
==========================

The access log component for Hyperf.

v3.1.5(2y ago)04.8k↓50%MITPHP

Since May 21Pushed 2y ago2 watchersCompare

[ Source](https://github.com/friendsofhyperf/access-log)[ Packagist](https://packagist.org/packages/friendsofhyperf/access-log)[ RSS](/packages/friendsofhyperf-access-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (95)Used By (0)

Access Log
==========

[](#access-log)

[![Latest Stable Version](https://camo.githubusercontent.com/83f0137e8e4306aba90d77f8c2b4a510b38dfd0d47b6fbf0638430530eedeaad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f6163636573732d6c6f67)](https://packagist.org/packages/friendsofhyperf/access-log)[![Total Downloads](https://camo.githubusercontent.com/6e06a0f85c94b76f02682fd52cd06162e7cf0db79465f40cd0f9cb465eb9428a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f6163636573732d6c6f67)](https://packagist.org/packages/friendsofhyperf/access-log)[![License](https://camo.githubusercontent.com/435a482f09ee92e7e701864235b7a494efd727272d3adbc97a6265bc385b0ba2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f6163636573732d6c6f67)](https://github.com/friendsofhyperf/access-log)

The access log component for Hyperf.

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

[](#installation)

- Request

```
composer require friendsofhyperf/access-log
```

- Publish

```
php bin/hyperf.php vendor:publish friendsofhyperf/access-log
```

- Add logger group

```
// config/autoload/logger.php
return [
    // ...
    'access' => [
        'handler' => [
            'class' => \Monolog\Handler\StreamHandler::class,
            'constructor' => [
                'stream' => BASE_PATH . "/runtime/logs/access_log.log",
                'level' => Monolog\Logger::DEBUG,
            ],
        ],
        'formatter' => [
            'class' => \FriendsOfHyperf\AccessLog\Formatter\AccessLogFormatter::class,
        ],
    ],
];
```

- Switch logger group

```
// config/autoload/access_log.php
return [
    'enable' => env('ACCESS_LOG_ENABLE', false),
    'logger' => [
        'group' => 'access',
        'time_format' => 'd/M/Y:H:i:s O',
    ],
    'ignore_user_agents' => [
        'Consul Health Check',
    ],
    'ignore_paths' => [
        '/favicon.ico',
    ],
];
```

Donate
------

[](#donate)

> If you like them, Buy me a cup of coffee. [Alipay](https://hdj.me/images/alipay-min.jpg) | [WeChat](https://hdj.me/images/wechat-pay-min.jpg)

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

94

Last Release

881d ago

Major Versions

v2.0.2 → v3.0.0-beta42022-05-24

v2.0.13 → v3.0.0-beta312022-06-24

v2.0.14 → v3.0.0-rc.12022-08-10

v2.0.24 → v3.0.02022-12-29

v2.0.28 → v3.0.142023-02-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

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

---

Tags

hyperfv3.1

### Embed Badge

![Health badge](/badges/friendsofhyperf-access-log/health.svg)

```
[![Health](https://phpackages.com/badges/friendsofhyperf-access-log/health.svg)](https://phpackages.com/packages/friendsofhyperf-access-log)
```

###  Alternatives

[friendsofhyperf/sentry

The sentry component for Hyperf.

1864.6k](/packages/friendsofhyperf-sentry)[hyperf/odin

425.9k](/packages/hyperf-odin)[friendsofhyperf/lock

The lock component for Hyperf.

1447.4k](/packages/friendsofhyperf-lock)[friendsofhyperf/telescope

An elegant debug assistant for the hyperf framework.

225.0k2](/packages/friendsofhyperf-telescope)

PHPackages © 2026

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