PHPackages                             goedemiddag/betterstack-logs - 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. goedemiddag/betterstack-logs

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

goedemiddag/betterstack-logs
============================

Monolog handler for Better Stack Logs

v1.3.0(4mo ago)6535.4k—5.8%2MITPHPPHP ^8.2

Since Nov 21Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/goedemiddag/betterstack-logs)[ Packagist](https://packagist.org/packages/goedemiddag/betterstack-logs)[ RSS](/packages/goedemiddag-betterstack-logs/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (17)Versions (8)Used By (0)

Monolog handler for Better Stack Logs
=====================================

[](#monolog-handler-for-better-stack-logs)

This package allows you to write logs to Better Stack Logs.

Installation
------------

[](#installation)

First use composer to install the package using the following command

```
composer require goedemiddag/betterstack-logs
```

Usage
-----

[](#usage)

Add a new channel to the `config/logging.php` file

```
'channels' => [
    ...
    'betterstack' => [
        'driver'         => 'monolog',
        'level'          => env('LOG_LEVEL', 'debug'),
        'handler'        => \Goedemiddag\BetterStackLogs\BetterStackHandler::class,
        'handler_with'   => [
            'sourceToken' => env('BETTERSTACK_LOGS_SOURCE_TOKEN'),
            'host'        => env('BETTERSTACK_LOGS_HOST'),
        ],
    ],
    ...
]
```

Set the default log channel to `betterstack` or add it to the `stack` channel

Add the following to your `.env` file

```
BETTERSTACK_LOGS_SOURCE_TOKEN=your-source-token
BETTERSTACK_LOGS_HOST=your-ingestion-host
```

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance76

Regular maintenance activity

Popularity41

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 62.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 ~145 days

Recently: every ~166 days

Total

7

Last Release

130d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11698012?v=4)[Goedemiddag!](/maintainers/Goedemiddag)[@goedemiddag](https://github.com/goedemiddag)

---

Top Contributors

[![johankrijt](https://avatars.githubusercontent.com/u/11670720?v=4)](https://github.com/johankrijt "johankrijt (15 commits)")[![dvdheiden](https://avatars.githubusercontent.com/u/90568118?v=4)](https://github.com/dvdheiden "dvdheiden (8 commits)")[![dcmastenbroek](https://avatars.githubusercontent.com/u/31538560?v=4)](https://github.com/dcmastenbroek "dcmastenbroek (1 commits)")

---

Tags

laravelmonologbetterstack

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/goedemiddag-betterstack-logs/health.svg)

```
[![Health](https://phpackages.com/badges/goedemiddag-betterstack-logs/health.svg)](https://phpackages.com/packages/goedemiddag-betterstack-logs)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[illuminate/database

The Illuminate Database package.

2.8k55.8M13.1k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)

PHPackages © 2026

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