PHPackages                             cryonighter/http-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. [HTTP &amp; Networking](/categories/http)
4. /
5. cryonighter/http-logger

ActiveLibrary[HTTP &amp; Networking](/categories/http)

cryonighter/http-logger
=======================

Logger for HTTP request and response

2.0.0(2mo ago)07061MITPHPPHP &gt;=7.2

Since Jun 25Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (1)

HTTP Logger
===========

[](#http-logger)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9d830fd485f2b3b22434dedfd41751bf438482bd2fc479373192e82e3648c8a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372796f6e6967687465722f687474702d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cryonighter/http-logger)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/cc6c6181c6bd7f7ac83d8bbfceadafb23aee883fed96afc0070d2e7e5d5a80ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372796f6e6967687465722f687474702d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cryonighter/http-logger)

This is a set of interfaces, the implementations of which are presented for example or are completely stubs.

Highlights
----------

[](#highlights)

- Simple API
- Framework Agnostic
- Composer ready, [PSR-2](http://www.php-fig.org/psr/psr-2/) and [PSR-4](http://www.php-fig.org/psr/psr-4/) compliant

System Requirements
-------------------

[](#system-requirements)

You need:

- **PHP &gt;= 7.2.0** but the latest stable version of PHP is recommended

Install
-------

[](#install)

Via Composer

```
$ composer require cryonighter/http-logger
```

Usage
-----

[](#usage)

```
use Cryonighter\HttpLogger\StreamHttpLogger;
use Cryonighter\HttpLogger\Formatter\PlainTextFormatter;
use Cryonighter\HttpLogger\Handler\DefaultRequestHandler;
use Cryonighter\HttpLogger\Handler\DefaultResponseHandler;

$logger = new StreamHttpLogger(
    STDOUT,
    new PlainTextFormatter(),
    new DefaultRequestHandler(),
    new DefaultResponseHandler(),
    new DefaultErrorHandler(),
);

$logger->logRequest($protocolVersion, $method, $uri, $headers, $body);
$logger->logResponse($protocolVersion, $code, $reason, $headers, $body);
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ php vendor/phpunit/phpunit/phpunit tests
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email `cryonighter@yandex.ru` instead of using the issue tracker.

Credits
-------

[](#credits)

- [Andrey Reshetchenko](https://github.com/cryonighter)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance84

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

Total

4

Last Release

83d ago

Major Versions

1.0.2 → 2.0.02026-02-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/640fd5daf250ddc27926b04a4fa74e2d8239c777475a783f155a6c9d47e1df78?d=identicon)[cryonighter](/maintainers/cryonighter)

---

Top Contributors

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

---

Tags

httploglogger

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[php-http/logger-plugin

PSR-3 Logger plugin for HTTPlug

29025.3M69](/packages/php-http-logger-plugin)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76410.4k1](/packages/hannesvdvreken-guzzle-debugbar)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

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