PHPackages                             madsleejensen/opbeat-php - 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. madsleejensen/opbeat-php

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

madsleejensen/opbeat-php
========================

Opbeat wrapper for PHP

v2.1.4(10y ago)94.3k5[1 issues](https://github.com/madsleejensen/opbeat-php/issues)1MITPHPPHP &gt;=5.6.0

Since Mar 12Pushed 10y ago4 watchersCompare

[ Source](https://github.com/madsleejensen/opbeat-php)[ Packagist](https://packagist.org/packages/madsleejensen/opbeat-php)[ RSS](/packages/madsleejensen-opbeat-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (8)Used By (1)

Opbeat PHP agent
================

[](#opbeat-php-agent)

Simple library for communicating with the Opbeat services.

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

[](#installation)

Use Composer to install this library:

```
composer require madsleejensen/opbeat-php
```

Configuration
-------------

[](#configuration)

You are required to provide a configuration handler which implements [Illuminate/Contracts/Config/Repository](https://github.com/illuminate/contracts/blob/master/Config/Repository.php).

Pass an instance of this config handler when initializing the `Client`.

`Opbeat\Client` will require the following settings:

- `opbeat.organization_id` (string)
- `opbeat.app_id` (string)
- `opbeat.access_token` (string)

The following settings are optional and have a default value:

- `opbeat.enable_exception_handler` (boolean, default: true)
- `opbeat.enable_error_handler` (boolean, default: true)

Enable Client
-------------

[](#enable-client)

When you've set up your configuration, simply create an instance of `Opbeat\Client`. Unless you set `enable_exception_handler` or `enable_error_handler` to `false`, the client will automatically register a handler for both.

```
$client = new \Opbeat\Client($config);
```

Manually Catch Exception
------------------------

[](#manually-catch-exception)

You can also catch exceptions manually. `Opbeat\Client` exposes a `catchException` method for this:

```
public void catchException ( Exception $exception )
```

Contributing
------------

[](#contributing)

If you experience any issues or have ideas for improvements, please open a pull request or an issue.

Pull requests must adhere to the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) and naming scheme of classes must adhere to [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) with `Opbeat` as namespace prefix.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~65 days

Recently: every ~89 days

Total

7

Last Release

3694d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de5531e89bb1f4835f613fc44112436b9a3b2dab43a689e2059536ce5e7c35a2?d=identicon)[egeriis](/maintainers/egeriis)

![](https://www.gravatar.com/avatar/e327e7f5aef648a017ca43d2d6f9f32565b3ea85e9d434ce20ab474321c891cb?d=identicon)[madsleejensen](/maintainers/madsleejensen)

---

Top Contributors

[![egeriis](https://avatars.githubusercontent.com/u/579824?v=4)](https://github.com/egeriis "egeriis (27 commits)")[![madsleejensen](https://avatars.githubusercontent.com/u/92769?v=4)](https://github.com/madsleejensen "madsleejensen (2 commits)")[![anaptfox](https://avatars.githubusercontent.com/u/1156260?v=4)](https://github.com/anaptfox "anaptfox (1 commits)")

### Embed Badge

![Health badge](/badges/madsleejensen-opbeat-php/health.svg)

```
[![Health](https://phpackages.com/badges/madsleejensen-opbeat-php/health.svg)](https://phpackages.com/packages/madsleejensen-opbeat-php)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[bilfeldt/laravel-request-logger

Log Laravel application request and responses for debugging or statistics

122163.3k2](/packages/bilfeldt-laravel-request-logger)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[jacobtims/filament-logger

Activity logger for filament

1721.0k4](/packages/jacobtims-filament-logger)

PHPackages © 2026

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