PHPackages                             sroze/log-stream - 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. sroze/log-stream

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

sroze/log-stream
================

0.4.5(8y ago)15.0kPHP

Since Sep 23Pushed 8y agoCompare

[ Source](https://github.com/sroze/logstream-client)[ Packagist](https://packagist.org/packages/sroze/log-stream)[ RSS](/packages/sroze-log-stream/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (9)Versions (15)Used By (0)

LogStream client
================

[](#logstream-client)

This is a PHP library that is a client for LogStream.

Getting started
---------------

[](#getting-started)

This library can be used both as standalone or with the Symfony integration.

### Standalone

[](#standalone)

```
use GuzzleHttp\Client;
use LogStream\Client\Http\JsonSerializableNormalizer;
use LogStream\Client\HttpClient;
use LogStream\TreeLoggerFactory;

$loggerFactory = new TreeLoggerFactory(
    new HttpClient(
        new Client(),
        new JsonSerializableNormalizer(),
        $address
    )
);
```

### Symfony integration

[](#symfony-integration)

The library contains a Symfony bundle. In order to activate it, you simply have to add in in your `AppKernel.php` file:

```
$bundles = [
    // ...
    new LogStream\LogStreamBundle(),
];
```

Then, simply adds the configuration:

```
log_stream:
    url: https://api.logstream.io
```

#### Configuration reference

[](#configuration-reference)

```
log_stream:
    # Address of LogStream API
    url: https://api.logstream.io
```

Operation runner
----------------

[](#operation-runner)

An interesting feature is the integration with the [FaultTolerance library](https://github.com/sroze/Tolerance): there's a client decorator, `OperationRunnerDecorator` that accepts an operation runner to run the client's calls. That way you can easily have a retry feature in case of problems in the real-time stream:

```
use LogStream\Client\FaultTolerance\OperationRunnerDecorator;

use FaultTolerance\OperationRunner\SimpleOperationRunner;
use FaultTolerance\OperationRunner\RetryOperationRunner;
use FaultTolerance\Waiter\SleepWaiter;
use FaultTolerance\WaitStrategy\Exponential;

$runner = new RetryOperationRunner(
    new SimpleOperationRunner(),
    new Max(new Exponential(new SleepWaiter(), 0.1), 10)
);

$client = new OperationRunnerDecorator($client, $operationRunner);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~54 days

Recently: every ~63 days

Total

14

Last Release

3229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58b8aaf662150e054108b611b620d1cf8c1cb91e00f76d3dfcd2d7a69a10991c?d=identicon)[sroze](/maintainers/sroze)

---

Top Contributors

[![sroze](https://avatars.githubusercontent.com/u/804625?v=4)](https://github.com/sroze "sroze (64 commits)")[![Sam-Burns](https://avatars.githubusercontent.com/u/6594039?v=4)](https://github.com/Sam-Burns "Sam-Burns (1 commits)")

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/sroze-log-stream/health.svg)

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

###  Alternatives

[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)[api-platform/symfony

Symfony API Platform integration

384.0M110](/packages/api-platform-symfony)[api-platform/validator

API Platform validator component

274.1M23](/packages/api-platform-validator)[api-platform/state

API Platform state interfaces

244.3M112](/packages/api-platform-state)[api-platform/serializer

API Platform core Serializer

244.3M71](/packages/api-platform-serializer)[concrete5/core

Concrete – an open source content management system.

20163.8k49](/packages/concrete5-core)

PHPackages © 2026

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