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

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

websoftwares/access-log
=======================

Log PSR-7 http messages using a PSR-3 logger instance following apache2 access log format.

0.0.1(10y ago)114MITPHPPHP &gt;=5.5.0

Since May 25Pushed 10y agoCompare

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

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

\#AccessLog (v0.0.\*) Log [PSR-7](http://www.php-fig.org/psr/psr-7/) http messages using a [PSR-3](http://www.php-fig.org/psr/psr-3/) logger instance following [apache2 access log](https://httpd.apache.org/docs/2.4/logs.html#accesslog) format.

[![Build Status](https://camo.githubusercontent.com/62ca43719fe060c6ac8d26fc33761357d4833a90b1910b0e473c50cca5193895/68747470733a2f2f6170692e7472617669732d63692e6f72672f776562736f667477617265732f6163636573734c6f672e706e67)](https://travis-ci.org/websoftwares/accessLog)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d815c7a8ece3b1e084e5c2d9976a30dba6b014cbdc730f4457f0929bd01a0316/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776562736f667477617265732f6163636573734c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/websoftwares/accessLog/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/20fc6c2c4dca316c12dd375c4c10a1bcd561b680a84c88105474c6deb2e37210/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f776562736f667477617265732f6163636573734c6f672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/websoftwares/accessLog/?branch=master)

Installing via Composer (recommended)
-------------------------------------

[](#installing-via-composer-recommended)

Install composer in your project:

```
curl -s http://getcomposer.org/installer | php

```

Create a composer.json file in your project root:

```
{
    "require": {
		"websoftwares/access-log": ~0.0.1"
    }
}
```

Install via composer

```
php composer.phar install

```

Usage
-----

[](#usage)

Basic usage of the `Websoftwares\AccessLog\Log` class.

```
use Websoftwares\AccessLog\LogFormatFactory;
use Websoftwares\AccessLog\Log;

// $logger instance of Psr\Log\LoggerInterface;
$format = (new LogFormatFactory)->commonLog();
$accessLog = new Log($logger, $format);

// $request instance of Psr\Http\Message\ServerRequestInterface
// $response instance of Psr\Http\Message\ResponseInterface

$accessLog($request, $response);
```

Changelog
---------

[](#changelog)

- v0.0.1: Initial import

Testing
-------

[](#testing)

In the tests folder u can find several tests.

License
-------

[](#license)

The [MIT](http://opensource.org/licenses/MIT "MIT") License (MIT).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

4012d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b876616b4c499f67211e285aed4b04f5ac44f436b553353389a951b2f60e6397?d=identicon)[Websoftwares](/maintainers/Websoftwares)

---

Top Contributors

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

---

Tags

httprequestlogpsr7PSR3

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rtheunissen/guzzle-log-middleware

Guzzle middleware to log requests and responses

842.3M17](/packages/rtheunissen-guzzle-log-middleware)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[contributte/psr7-http-message

PSR-7 (HTTP Message Interface) to Nette Framework

222.9M8](/packages/contributte-psr7-http-message)[mimmi20/browser-detector

Library to detect Browsers and Devices

48153.5k3](/packages/mimmi20-browser-detector)[chadicus/slim-oauth2-http

Bridge components for PSR-7 and bshaffer's OAuth2 Server http messages.

18455.2k7](/packages/chadicus-slim-oauth2-http)[pdeans/http

PSR-7 cURL HTTP client with support for PSR-17 HTTP factories.

1466.2k3](/packages/pdeans-http)

PHPackages © 2026

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