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.3(4w ago)14.4k↑66.7%3MITPHPPHP &gt;=8.5CI passing

Since May 14Pushed 4w 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 today

READMEChangelog (10)Dependencies (21)Versions (26)Used By (3)

[![presentation-lion-packages](https://private-user-images.githubusercontent.com/56183278/530372764-6c51b602-7eff-48db-bb0d-36fa308cb1f0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwMjk3NDYsIm5iZiI6MTc4MzAyOTQ0NiwicGF0aCI6Ii81NjE4MzI3OC81MzAzNzI3NjQtNmM1MWI2MDItN2VmZi00OGRiLWJiMGQtMzZmYTMwOGNiMWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzAyVDIxNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmMTRlZjMyNmRiYjI1ZDNiMzk2MzIwOTVlNmVmMmM2NjQyZDk3ZjhiNTYzNmFkNmFmNDA3MjQzYzdjZjQwYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.00af58qVzAvmseym6juUHF5ZAX-3BONPLPbqMf8_Ch8)](https://private-user-images.githubusercontent.com/56183278/530372764-6c51b602-7eff-48db-bb0d-36fa308cb1f0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODMwMjk3NDYsIm5iZiI6MTc4MzAyOTQ0NiwicGF0aCI6Ii81NjE4MzI3OC81MzAzNzI3NjQtNmM1MWI2MDItN2VmZi00OGRiLWJiMGQtMzZmYTMwOGNiMWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNzAyVDIxNTcyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmMTRlZjMyNmRiYjI1ZDNiMzk2MzIwOTVlNmVmMmM2NjQyZDk3ZjhiNTYzNmFkNmFmNDA3MjQzYzdjZjQwYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.00af58qVzAvmseym6juUHF5ZAX-3BONPLPbqMf8_Ch8) [ ![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

55

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 77.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 ~35 days

Total

22

Last Release

28d ago

Major Versions

1.x-dev → v2.0.02025-01-30

2.x-dev → 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://avatars.githubusercontent.com/u/139179826?v=4)[Lion-Packages](/maintainers/lion-packages)[@lion-packages](https://github.com/lion-packages)

---

Top Contributors

[![Sleon4](https://avatars.githubusercontent.com/u/56183278?v=4)](https://github.com/Sleon4 "Sleon4 (86 commits)")[![GabrielPalac](https://avatars.githubusercontent.com/u/162063476?v=4)](https://github.com/GabrielPalac "GabrielPalac (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![mcesmeralda](https://avatars.githubusercontent.com/u/96641807?v=4)](https://github.com/mcesmeralda "mcesmeralda (5 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)
```

PHPackages © 2026

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