PHPackages                             typhonius/acquia-logstream - 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. [API Development](/categories/api)
4. /
5. typhonius/acquia-logstream

ActiveLibrary[API Development](/categories/api)

typhonius/acquia-logstream
==========================

PHP library to connect to Acquia Logstream service

0.0.15(1y ago)3332.0k↓32.3%4[2 issues](https://github.com/typhonius/acquia-logstream/issues)1MITPHPPHP ^7.4 | ^8.0.3 | ^8.1CI passing

Since Mar 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/typhonius/acquia-logstream)[ Packagist](https://packagist.org/packages/typhonius/acquia-logstream)[ GitHub Sponsors](https://github.com/typhonius)[ RSS](/packages/typhonius-acquia-logstream/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (17)Used By (1)

[![Packagist](https://camo.githubusercontent.com/34a73623d00682a011ccf673111a06c670cb0e4dbd8e8b999f2914889ceb73c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747970686f6e6975732f6163717569612d6c6f6773747265616d2e737667)](https://packagist.org/packages/typhonius/acquia-logstream)[![Acquia Logstream Test](https://github.com/typhonius/acquia-logstream/workflows/Acquia%20Logstream%20Test/badge.svg)](https://github.com/typhonius/acquia-logstream/workflows/Acquia%20Logstream%20Test/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/57a2f8e41742f015f4af3dc244618312e81966b6bc057d3cfb81c563b06fab3d/68747470733a2f2f706f7365722e707567782e6f72672f747970686f6e6975732f6163717569612d6c6f6773747265616d2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/typhonius/acquia-logstream)![License](https://camo.githubusercontent.com/15196ebe08d8ae736418a5b4cd874200308b4616d24f6771fa27e3aa70a35f2e/68747470733a2f2f706f7365722e707567782e6f72672f747970686f6e6975732f6163717569612d6c6f6773747265616d2f6c6963656e73652e706e67)

Acquia Logstream
================

[](#acquia-logstream)

Pre-installation
----------------

[](#pre-installation)

1. Run `composer install`

Generating an API access token
------------------------------

[](#generating-an-api-access-token)

To generate an API access token, login to , then visit , and click ***Create Token***.

- Provide a label for the access token, so it can be easily identified. Click ***Create Token***.
- Once the token has been generated, copy the api key and api secret to a secure place. Make sure you record it now: you will not be able to retrieve this access token's secret again.

Usage
-----

[](#usage)

### Standalone tools

[](#standalone-tools)

*Phar file*

A Phar file will be attached to each tagged release on GitHub. This can be downloaded and used immediately with `php logstream.phar acquia:logstream`

*Shell script*

A shell script has been included as a wrapper for the logstream command which will allow users to run the logstream command directly without further requirements. This can be invoked by running `./bin/logstream acquia:logstream` from the cloned directory.

### PHP Library

[](#php-library)

The `LogstreamManager` class can be included in any other PHP library as it has been within the [Acquia Cli](https://github.com/typhonius/acquia_cli) tool. The simplest method of including and calling this library is as follows:

```
use AcquiaCloudApi\Connector\Client;
use AcquiaCloudApi\Connector\Connector;
use AcquiaCloudApi\Endpoints\Logs;
use AcquiaLogstream\LogstreamManager;

$config = [
    'key' => 'FILL ME',
    'secret' => 'FILL ME'
];

$environmentUuid = 'FILL ME'

$connector = new Connector($config);
$client = Client::factory($connector);
$logs = new Logs($client);

$stream = $logs->stream($environmentUuid);
$params = $stream->logstream->params;

$logstream = new LogstreamManager($input, $output, $params);
$logstream->stream();

```

More advanced usage allows for different options to be set and configured through methods on the `LogstreamManager` class.

Command Parameters
------------------

[](#command-parameters)

The Logstream command takes three required arguments as parameters.

- Your Acquia API key
- Your Acquia API secret
- The environment UUID

There are also three optional parameters which can be used to filter log types, servers to stream logs from, and to enable colourisation.

Examples
--------

[](#examples)

```
# Show help
./bin/logstream acquia:logstream --help

# Stream all logs from all servers
./bin/logstream acquia:logstream APIKEY APISECRET ENVIRONMENTUUID

# Stream Varnish and NGINX logs
./bin/logstream acquia:logstream APIKEY APISECRET ENVIRONMENTUUID -t bal-request -t varnish-request

# Stream PHP error and Apache error logs from one server
./bin/logstream acquia:logstream APIKEY APISECRET ENVIRONMENTUUID -t php-error -t apache-error -s web-1234

# Stream all logs with colourisation to determine which log type is used
./bin/logstream acquia:logstream APIKEY APISECRET ENVIRONMENTUUID -c

```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance57

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 74.1% 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 ~152 days

Recently: every ~275 days

Total

13

Last Release

419d ago

PHP version history (3 changes)0.0.6PHP &gt;=7.1

0.0.9PHP &gt;=7.3

0.0.10PHP ^7.4 | ^8.0.3 | ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/739fb5c90a0f98751c56b21e7a50e9d0a0d4b72179ef3e98ba523afe75dcc948?d=identicon)[typhonius](/maintainers/typhonius)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (257 commits)")[![typhonius](https://avatars.githubusercontent.com/u/3642111?v=4)](https://github.com/typhonius "typhonius (40 commits)")[![violinist-bot](https://avatars.githubusercontent.com/u/27495990?v=4)](https://github.com/violinist-bot "violinist-bot (18 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (16 commits)")[![danepowell](https://avatars.githubusercontent.com/u/1984514?v=4)](https://github.com/danepowell "danepowell (15 commits)")[![grasmash](https://avatars.githubusercontent.com/u/539205?v=4)](https://github.com/grasmash "grasmash (1 commits)")

---

Tags

acquiaacquia-apiacquia-cloudapilogstreamphpphp-librarywebsocketswss

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/typhonius-acquia-logstream/health.svg)

```
[![Health](https://phpackages.com/badges/typhonius-acquia-logstream/health.svg)](https://phpackages.com/packages/typhonius-acquia-logstream)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[cravler/maxmind-geoip-bundle

Bundle integrating MaxMind GeoIP2 database into symfony application

27615.8k2](/packages/cravler-maxmind-geoip-bundle)[worksome/graphlint

A static analysis tool for GraphQL

13189.4k](/packages/worksome-graphlint)[zerodha/phpkiteconnect

The PHP client library for the Kite Connect trading APIs Resources

463.4k2](/packages/zerodha-phpkiteconnect)

PHPackages © 2026

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