PHPackages                             lion/exceptions - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lion/exceptions

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

lion/exceptions
===============

Exception handling and serializations.

v3.0.0(4mo ago)14.0k↑250%3MITPHPPHP &gt;=8.5CI passing

Since May 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/lion-packages/exceptions)[ Packagist](https://packagist.org/packages/lion/exceptions)[ RSS](/packages/lion-exceptions/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (20)Used By (3)

[![presentation-lion-packages](https://private-user-images.githubusercontent.com/56183278/530372764-6c51b602-7eff-48db-bb0d-36fa308cb1f0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzIyNjk3NTAsIm5iZiI6MTc3MjI2OTQ1MCwicGF0aCI6Ii81NjE4MzI3OC81MzAzNzI3NjQtNmM1MWI2MDItN2VmZi00OGRiLWJiMGQtMzZmYTMwOGNiMWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjI4VDA5MDQxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxN2Y4YTMwZDlhMmY5ODI4Y2ViYjk5YTM3OTY4NmE4NWViOGE4Mzc1Zjc2YTc3Yzg4NzJjNDJjNzQ2MjI2MDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9qnyDh_0EMYPvuGWeHX1J6cHZE8Qmi9v0CW1kvwIW44)](https://private-user-images.githubusercontent.com/56183278/530372764-6c51b602-7eff-48db-bb0d-36fa308cb1f0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzIyNjk3NTAsIm5iZiI6MTc3MjI2OTQ1MCwicGF0aCI6Ii81NjE4MzI3OC81MzAzNzI3NjQtNmM1MWI2MDItN2VmZi00OGRiLWJiMGQtMzZmYTMwOGNiMWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjI4VDA5MDQxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxN2Y4YTMwZDlhMmY5ODI4Y2ViYjk5YTM3OTY4NmE4NWViOGE4Mzc1Zjc2YTc3Yzg4NzJjNDJjNzQ2MjI2MDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9qnyDh_0EMYPvuGWeHX1J6cHZE8Qmi9v0CW1kvwIW44) [ ![Latest Stable Version](https://camo.githubusercontent.com/1cc90af297dfb2d6b78f5c46d8a9181af726aa8ccade7eb96816edde504f3fe5/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f657863657074696f6e732f76) ](https://packagist.org/packages/lion/exceptions) [ ![Total Downloads](https://camo.githubusercontent.com/d9f3639f168c80885cc21482afd343e64d5b0eb675ee4b7e1e682ca859d3b9cc/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f657863657074696f6e732f646f776e6c6f616473) ](https://packagist.org/packages/lion/exceptions) [ ![License](https://camo.githubusercontent.com/944955e0f42d6ba302f0b2b19a71ac344808338d9175173328c884e384cf0c02/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f657863657074696f6e732f6c6963656e7365) ](https://github.com/lion-packages/exceptions/blob/main/LICENSE) [ ![PHP Version Require](https://camo.githubusercontent.com/98a402ac55c1fb3c1f936dac83dff035206d78cc6ca449ce3ca1d77b28906924/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f657863657074696f6e732f726571756972652f706870) ](https://www.php.net/)

🚀 **Lion-Exceptions** Handling exceptions and serializations.

---

📦 Installation
--------------

[](#-installation)

Install the exceptions using **Composer**:

```
composer require lion/exceptions
```

📝 License
---------

[](#-license)

The **exceptions** is open-sourced software licensed under the [MIT License](https://github.com/lion-packages/exceptions/blob/main/LICENSE).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance78

Regular maintenance activity

Popularity23

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78.5% 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 ~36 days

Recently: every ~72 days

Total

19

Last Release

78d ago

Major Versions

v1.3.0 → v2.0.02025-01-30

v2.8.0 → v3.0.02025-12-26

PHP version history (3 changes)v1.0.0PHP &gt;=8.3

v2.0.0PHP &gt;=8.4

v3.0.0PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/1419758fcb0259274d35f6d2cbfb5a60694baa74e99437d32dfec9a0d5c10d65?d=identicon)[lion-packages](/maintainers/lion-packages)

---

Top Contributors

[![Sleon4](https://avatars.githubusercontent.com/u/56183278?v=4)](https://github.com/Sleon4 "Sleon4 (73 commits)")[![GabrielPalac](https://avatars.githubusercontent.com/u/162063476?v=4)](https://github.com/GabrielPalac "GabrielPalac (9 commits)")[![mcesmeralda](https://avatars.githubusercontent.com/u/96641807?v=4)](https://github.com/mcesmeralda "mcesmeralda (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![MMarioLP](https://avatars.githubusercontent.com/u/105904645?v=4)](https://github.com/MMarioLP "MMarioLP (2 commits)")[![JPCORREDOR05](https://avatars.githubusercontent.com/u/101783650?v=4)](https://github.com/JPCORREDOR05 "JPCORREDOR05 (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

exceptionsphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lion-exceptions/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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