PHPackages                             leocavalcante/result - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. leocavalcante/result

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

leocavalcante/result
====================

Result provides an alternative error handling mechanism, avoiding throwing exceptions and a better data flow control.

v0.1.0(5y ago)878[1 issues](https://github.com/leocavalcante/result/issues)[1 PRs](https://github.com/leocavalcante/result/pulls)MITPHPPHP &gt;=7.4

Since Feb 17Pushed 1y agoCompare

[ Source](https://github.com/leocavalcante/result)[ Packagist](https://packagist.org/packages/leocavalcante/result)[ RSS](/packages/leocavalcante-result/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Result
======

[](#result)

[![CI](https://github.com/leocavalcante/result/workflows/CI/badge.svg?branch=main)](https://github.com/leocavalcante/result/workflows/CI/badge.svg?branch=main)[![Type coverage](https://camo.githubusercontent.com/a9ad5e7ec3f1c3755c4aed9e4a5959859b29d63dfaebf36584aa0348bd2963be/68747470733a2f2f73686570686572642e6465762f6769746875622f6c656f636176616c63616e74652f726573756c742f636f7665726167652e737667)](https://camo.githubusercontent.com/a9ad5e7ec3f1c3755c4aed9e4a5959859b29d63dfaebf36584aa0348bd2963be/68747470733a2f2f73686570686572642e6465762f6769746875622f6c656f636176616c63616e74652f726573756c742f636f7665726167652e737667)[![Code coverage](https://camo.githubusercontent.com/ef1160fa57dad152648e09e7b687776578e833597a000640d0e0d320888530c3/68747470733a2f2f636f6465636f762e696f2f67682f6c656f636176616c63616e74652f726573756c742f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4d45525248544e555053)](https://camo.githubusercontent.com/ef1160fa57dad152648e09e7b687776578e833597a000640d0e0d320888530c3/68747470733a2f2f636f6465636f762e696f2f67682f6c656f636176616c63616e74652f726573756c742f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4d45525248544e555053)

🎁 Result provides an alternative error handling mechanism, avoiding throwing exceptions or using nulls.

> Heavily inspired by [Rust's Result](https://doc.rust-lang.org/std/result/).

Why avoid nulls?
----------------

[](#why-avoid-nulls)

TODO: Talk about null-safety.

Why avoid exceptions?
---------------------

[](#why-avoid-exceptions)

TODO: Talk about resilience.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1961d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/183722?v=4)[Leo Cavalcante](/maintainers/leocavalcante)[@leocavalcante](https://github.com/leocavalcante)

---

Top Contributors

[![leocavalcante](https://avatars.githubusercontent.com/u/183722?v=4)](https://github.com/leocavalcante "leocavalcante (17 commits)")

---

Tags

error-handlinghacktoberfestmonadnull-safetyphpresult

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/leocavalcante-result/health.svg)

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

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.6k](/packages/spatie-craft-ray)

PHPackages © 2026

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