PHPackages                             spatie/error-solutions - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. spatie/error-solutions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

spatie/error-solutions
======================

This is my package error-solutions

2.0.5(2mo ago)6853.2M—1.2%9[2 PRs](https://github.com/spatie/error-solutions/pulls)7MITPHPPHP ^8.2CI passing

Since Jun 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/spatie/error-solutions)[ Packagist](https://packagist.org/packages/spatie/error-solutions)[ Docs](https://github.com/spatie/error-solutions)[ GitHub Sponsors](https://github.com/Spatie)[ RSS](/packages/spatie-error-solutions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (28)Versions (23)Used By (7)

Error solutions
===============

[](#error-solutions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/21061641536c5585cb426dc228f8b772ca7c7afe0699fbc8c4f1d7012c4a2d69/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6572726f722d736f6c7574696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/error-solutions)[![Tests](https://camo.githubusercontent.com/f702af116780ebd3f114405b90f9670cf4068e788685b77b11f388e83b46b6ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7370617469652f6572726f722d736f6c7574696f6e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/spatie/error-solutions/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/396b0e0f8da1c7bbd673a575aa30b60b0911c224c2b28722b198b4e262ea0ca7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6572726f722d736f6c7574696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/error-solutions)

At Spatie we develop multiple packages handling errors and providing solutions for these errors. This package is a collection of all these solutions.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/4db44840688cfe73eb3c66465e049ddfff9a45b5fb60f689a8d415ee277b66c2/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6572726f722d736f6c7574696f6e732e6a70673f743d31)](https://spatie.be/github-ad-click/error-solutions)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/error-solutions
```

Usage
-----

[](#usage)

We've got some excellent documentation on how to use solutions:

- [Flare](https://flareapp.io/docs/ignition/solutions/implementing-solutions)
- [Ignition](https://github.com/spatie/ignition/?tab=readme-ov-file#displaying-solutions)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Ruben Van Assche](https://github.com/rubenvanassche)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity65

Solid adoption and visibility

Community29

Small or concentrated contributor base

Maturity62

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

Recently: every ~60 days

Total

19

Last Release

80d ago

Major Versions

0.0.1 → 1.0.02024-06-12

1.1.3 → v2.x-dev2025-05-07

v1.x-dev → 2.0.02025-05-15

PHP version history (2 changes)0.0.1PHP ^8.0

2.0.3PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (40 commits)")[![rubenvanassche](https://avatars.githubusercontent.com/u/619804?v=4)](https://github.com/rubenvanassche "rubenvanassche (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![duncanmcclean](https://avatars.githubusercontent.com/u/19637309?v=4)](https://github.com/duncanmcclean "duncanmcclean (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![arnebr](https://avatars.githubusercontent.com/u/1068416?v=4)](https://github.com/arnebr "arnebr (6 commits)")[![mshukurlu](https://avatars.githubusercontent.com/u/11161906?v=4)](https://github.com/mshukurlu "mshukurlu (3 commits)")[![riasvdv](https://avatars.githubusercontent.com/u/3626559?v=4)](https://github.com/riasvdv "riasvdv (2 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (2 commits)")[![fylzero](https://avatars.githubusercontent.com/u/3542501?v=4)](https://github.com/fylzero "fylzero (2 commits)")[![yuriy-sorokin](https://avatars.githubusercontent.com/u/15155005?v=4)](https://github.com/yuriy-sorokin "yuriy-sorokin (1 commits)")[![Lukaaashek](https://avatars.githubusercontent.com/u/11900185?v=4)](https://github.com/Lukaaashek "Lukaaashek (1 commits)")[![thecaliskan](https://avatars.githubusercontent.com/u/13554944?v=4)](https://github.com/thecaliskan "thecaliskan (1 commits)")[![txdFabio](https://avatars.githubusercontent.com/u/118370559?v=4)](https://github.com/txdFabio "txdFabio (1 commits)")

---

Tags

spatieerror-solutions

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spatie-error-solutions/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-error-solutions/health.svg)](https://phpackages.com/packages/spatie-error-solutions)
```

###  Alternatives

[spatie/laravel-package-tools

Tools for creating Laravel packages

935125.5M7.0k](/packages/spatie-laravel-package-tools)[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[spatie/macroable

A trait to dynamically add methods to a class

72659.6M64](/packages/spatie-macroable)[spatie/regex

A sane interface for php's built in preg\_\* functions

1.1k17.1M59](/packages/spatie-regex)[spatie/enum

PHP Enums

84429.1M68](/packages/spatie-enum)

PHPackages © 2026

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