PHPackages                             crashub-com/crashub-laravel - 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. crashub-com/crashub-laravel

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

crashub-com/crashub-laravel
===========================

Crashub client for your Laravel project

v0.3.0(3y ago)0490MITPHP

Since Mar 10Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Crashub client for your Laravel project
=======================================

[](#crashub-client-for-your-laravel-project)

Use this library to start reporting exceptions to Crashub.

Install
-------

[](#install)

Install the crashub-laravel package via composer:

```
composer require crashub-com/crashub-laravel
```

Add Crashub reporting to `app/Exceptions/Handler.php` (Laravel version 8/9):

```
public function register()
{
    $this->reportable(function (\Throwable $e) {
        if (app()->bound('crashub')) {
            app('crashub')->report($e);
        }
    });
}
```

Run the crashub:install artisan command:

```
php artisan crashub:install
```

Your application should now report uncaught errors to Crashub.

Add context to errors
---------------------

[](#add-context-to-errors)

You can add custom context to the errors in the form of key/value pairs.

To add global context, use the `$crashub->context()` method:

```
$crashub->context('key', $value);
```

You can add multiple items:

```
$crashub->context([
    'key1' => $value1,
    'key2' => $value2,
]);
```

To add context to a particular error notification, pass an associative array to `$crashub->report()`:

```
$crashub->report($e, ['key' => $value]);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

3

Last Release

1256d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/970031f50d10c4e101574748ea684f5e82b670cade3c3061ae2370289adc09da?d=identicon)[lmosholov](/maintainers/lmosholov)

---

Top Contributors

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

---

Tags

loggingmonitoringdebuggingerrorsexceptionsreporting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crashub-com-crashub-laravel/health.svg)

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

###  Alternatives

[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[bugsnag/bugsnag

Official Bugsnag notifier for PHP applications.

56347.0M78](/packages/bugsnag-bugsnag)[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90234.6M36](/packages/bugsnag-bugsnag-laravel)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)

PHPackages © 2026

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