PHPackages                             encodia/laravel-something-wrong - 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. encodia/laravel-something-wrong

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

encodia/laravel-something-wrong
===============================

A simple package for Laravel to notify handled errors, exceptions and more

1.0.0(1y ago)01.1k[2 PRs](https://github.com/encodia/laravel-something-wrong/pulls)MITPHPPHP ^8.2CI passing

Since Jul 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/encodia/laravel-something-wrong)[ Packagist](https://packagist.org/packages/encodia/laravel-something-wrong)[ Docs](https://github.com/encodia/laravel-something-wrong)[ RSS](/packages/encodia-laravel-something-wrong/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (7)Used By (0)

Something wrong
===============

[](#something-wrong)

[![Latest Version on Packagist](https://camo.githubusercontent.com/04c565e316acc4488f46812866f948aa67ff236b3a7137d9e0e2bec758e60192/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e636f6469612f6c61726176656c2d736f6d657468696e672d77726f6e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/encodia/laravel-something-wrong)[![GitHub Tests Action Status](https://camo.githubusercontent.com/271a5e97f87bfc01ed571c86926d383b49df6b2a9a189ebc61e69f4d64a0f443/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e636f6469612f6c61726176656c2d736f6d657468696e672d77726f6e672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/encodia/laravel-something-wrong/actions/workflows/run-tests.yml)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/fab230e6d6a628a052d6d8c8c9aa2920079de375c826365439e55b939d51197f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e636f6469612f6c61726176656c2d736f6d657468696e672d77726f6e672f7068702d63732d66697865722e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/encodia/laravel-something-wrong/actions/workflows/php-cs-fixer.yml)

[![Total Downloads](https://camo.githubusercontent.com/ee36e9af52f07300d6d22d11a50d26c8f8c426bf65a9dd7bb3e89a66ec28a87a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e636f6469612f6c61726176656c2d736f6d657468696e672d77726f6e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/encodia/laravel-something-wrong)

A simple package for Laravel to notify handled errors, exceptions and more.

**Note**: this package is still under development and currently its features are very limited.

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

[](#installation)

You can install the package via composer:

```
composer require encodia/laravel-something-wrong
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-something-wrong-config"
```

Usage
-----

[](#usage)

Note: the current version only supports **Insight Hub** (formerly Bugsnag).

This means that anything you notify will use Insight Hub under the hood to send a notification.

### Where

[](#where)

Typically, you will inject `Encodia\SomethingWrong` in your service class constructor:

```
use \Encodia\SomethingWrong;

class MyService {
    private SomethingWrong $somethingWrong;

    public function __construct(SomethingWrong $somethingWrong)
    {
        $this->somethingWrong = $somethingWrong;
    }

    public function doSomething(): void
    {
        // ...
        $this->somethingWrong
            ->exception(
                new \Exception("This wasn't supposed to happen, so let's notify it!")
        );

        // ...
    }
}

```

If you prefer, you can use its facade:

```
use \Encodia\SomethingWrong\Facades\SomethingWrong;

// ...
SomethingWrong::exception(
    new \Exception("This wasn't supposed to happen, so let's notify it!")
);
```

### How

[](#how)

You can notify a simple exception, without any further details:

```
SomethingWrong::exception(
    new \Exception("Something wrong happened!")
);
```

If you need to add any details, just pass an array as second argument:

```
SomethingWrong::exception(
    new \Exception("Something wrong happened!"),
    [
        'foo' => 'bar',
        'path' => 'a/b/c',
        'user' => auth()->user,
    ],
);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Erik D'Ercole](https://github.com/eleftrik)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance40

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

723d ago

Major Versions

0.2.0 → 1.0.02024-05-16

PHP version history (2 changes)0.1.0PHP ^8.0

1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9489601c40ff678252f4735f7ab07e9ab43233ffc1392048d2b205f75f87131b?d=identicon)[encodia](/maintainers/encodia)

---

Top Contributors

[![eleftrik](https://avatars.githubusercontent.com/u/6959298?v=4)](https://github.com/eleftrik "eleftrik (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![davideprevosto](https://avatars.githubusercontent.com/u/28837345?v=4)](https://github.com/davideprevosto "davideprevosto (4 commits)")[![encodiaweb](https://avatars.githubusercontent.com/u/7887270?v=4)](https://github.com/encodiaweb "encodiaweb (1 commits)")

---

Tags

laravelerrorsexceptionsbugsnagerror handlingencodia

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/encodia-laravel-something-wrong/health.svg)

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

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

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

Official Bugsnag notifier for PHP applications.

56347.0M75](/packages/bugsnag-bugsnag)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)

PHPackages © 2026

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