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

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

monsieurluge/result
===================

Result-oriented objects and context

v3.0.0(6y ago)37[1 issues](https://github.com/monsieurluge/result/issues)MITPHPPHP ^7.2

Since Sep 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/monsieurluge/result)[ Packagist](https://packagist.org/packages/monsieurluge/result)[ RSS](/packages/monsieurluge-result/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (3)Versions (6)Used By (0)

Result
======

[](#result)

[![logo](logo.png)](logo.png)

The goal of the Result library is to say goodbye to the `if` and `try catch` control structures when requesting a storage or any object who can return either "nothing" or the desired result.

The code also becomes more declarative and object oriented.

Examples
--------

[](#examples)

### Using a repository

[](#using-a-repository)

Context: We want to send a message to an user, only known by his ID.

#### As usually seen

[](#as-usually-seen)

```
