PHPackages                             errorstream/errorstream-yii2 - 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. errorstream/errorstream-yii2

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

errorstream/errorstream-yii2
============================

Yii 2 Package for ErrorStream.com integration

1.1(10y ago)4730[1 issues](https://github.com/errorstreamhq/errorstream-yii2/issues)Apache-2.0PHP

Since Jun 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/errorstreamhq/errorstream-yii2)[ Packagist](https://packagist.org/packages/errorstream/errorstream-yii2)[ Docs](https://www.errorstream.com)[ RSS](/packages/errorstream-errorstream-yii2/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

ErrorStream - Yii 2.0
=====================

[](#errorstream---yii-20)

Yii2 integration for [Errorstream](https://www.errorstream.com/)

\#Installation Instructions

First, run the following command on the terminal to download and install the package

```
composer require errorstream/errorstream-yii2
```

Next, register the client class in your web.php configuration file. You can find your API token and Project token on the project settings page inside of errorstream.com

```
    'components' => [
        ...
        'errorstream' => [
            'class'             => 'ErrorStream\ErrorStreamClient\ErrorStreamClient',
            'api_token'         => 'YOUR_API_TOKEN', //Put your api token here
            'project_token'     => 'YOUR_PROJECT_TOKEN', //Put your project token here
            'active'            => true, //You might want to only activate this in production mode
        ]
        ...
    ]
```

Next, you want to edit the errorHandler setting in web.php configuration file. You'll want to place the ErrorStreamErrorHandler as a 'class' for your error handler, like this.

```
'components' => [
    ...
    'errorHandler' => [
        'errorAction' => 'site/error',
        'class' => 'ErrorStream\ErrorStream\ErrorStreamErrorHandler',
    ],
    ...
]
```

Finally, you want to edit the errorHandler setting in web.php configuration file. You'll want to place the ErrorStreamErrorHandler as a 'class' for your error handler, like this.

```
    'components' => [
        ...
        'log' => [
            ..
            'targets' => [
                ...
                [
                    'class' => 'ErrorStream\ErrorStream\ErrorStreamLogger',
                    'levels' => ['error', 'warning'], //Only send errors and warnings.
                    'logVars' => [], //Necessary so you don't submit every request to our server.
                ],
                ...
            ],
        ]
    ]
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

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

Total

2

Last Release

3667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c06b2d5cdb404d0fb5c54688e72dc68be3e3d18820fe70cf43c421f18d60f27?d=identicon)[kevinh448](/maintainers/kevinh448)

---

Top Contributors

[![kevinhamilton](https://avatars.githubusercontent.com/u/1581075?v=4)](https://github.com/kevinhamilton "kevinhamilton (6 commits)")

---

Tags

loggingerrorsyii2yiierrorstream

### Embed Badge

![Health badge](/badges/errorstream-errorstream-yii2/health.svg)

```
[![Health](https://phpackages.com/badges/errorstream-errorstream-yii2/health.svg)](https://phpackages.com/packages/errorstream-errorstream-yii2)
```

###  Alternatives

[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

200688.7k4](/packages/bedezign-yii2-audit)[bugsnag/bugsnag-symfony

Official BugSnag notifier for Symfony applications.

453.1M8](/packages/bugsnag-bugsnag-symfony)

PHPackages © 2026

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