leocavalcante / result
Result provides an alternative error handling mechanism, avoiding throwing exceptions and a better data flow control.
Installs: 75
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 0
Forks: 0
Open Issues: 1
pkg:composer/leocavalcante/result
Requires
- php: >=7.4
- ext-json: *
Requires (Dev)
- pestphp/pest: ^1.0
- vimeo/psalm: ^4.0
This package is auto-updated.
Last update: 2025-10-06 20:48:32 UTC
README
🎁 Result provides an alternative error handling mechanism, avoiding throwing exceptions or using nulls.
Heavily inspired by Rust's Result.
Why avoid nulls?
TODO: Talk about null-safety.
Why avoid exceptions?
TODO: Talk about resilience.