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(2mo ago)6532.7k—9%2MITPHPPHP ^8.2

Since Nov 21Pushed 2mo 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 2d 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

53

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

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

85d 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

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)

PHPackages © 2026

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