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

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

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

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

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

Since Jul 18Pushed 2mo 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 today

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

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

[](#something-wrong)

[![Abandoned](https://camo.githubusercontent.com/1ced2d194b576038320ef3d311730c2679d4cd8bf968c04b07481c480ef0fb0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6162616e646f6e65642d726564)](https://camo.githubusercontent.com/1ced2d194b576038320ef3d311730c2679d4cd8bf968c04b07481c480ef0fb0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6162616e646f6e65642d726564)[![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)

⚠️ Package deprecated
---------------------

[](#️-package-deprecated)

This package is no longer maintained. Please consider using alternatives or forking it if needed.

---

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

40

—

FairBetter than 86% of packages

Maintenance56

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

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

779d 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://avatars.githubusercontent.com/u/111562101?v=4)[Encodia](/maintainers/encodia)[@encodia](https://github.com/encodia)

---

Top Contributors

[![eleftrik](https://avatars.githubusercontent.com/u/6959298?v=4)](https://github.com/eleftrik "eleftrik (17 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

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90336.2M38](/packages/bugsnag-bugsnag-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)

PHPackages © 2026

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