PHPackages                             ilexn/result-option - 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. ilexn/result-option

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

ilexn/result-option
===================

Rust like enum Result and Option.

0.2.0(4y ago)04.3k↓37.5%[3 PRs](https://github.com/iLexN/result-option/pulls)1MITPHPPHP &gt;=8.1

Since May 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iLexN/result-option)[ Packagist](https://packagist.org/packages/ilexn/result-option)[ GitHub Sponsors](https://github.com/iLexN)[ RSS](/packages/ilexn-result-option/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (1)

Result-Option
=============

[](#result-option)

> Just for fun, Just feel Rust, Rust like enum Result and Option.

[![Latest Stable Version](https://camo.githubusercontent.com/6020cf78cadefe49c2b1a64f632a335bbbfe507387b774452072b7fadb7bf227/68747470733a2f2f706f7365722e707567782e6f72672f696c65786e2f726573756c742d6f7074696f6e2f762f737461626c65)](https://packagist.org/packages/ilexn/result-option)[![Total Downloads](https://camo.githubusercontent.com/c6a2cad85cbc3487a2ac225cbde1ad638f86968ec2e50e0b071ea52c05cbeeda/68747470733a2f2f706f7365722e707567782e6f72672f696c65786e2f726573756c742d6f7074696f6e2f646f776e6c6f616473)](https://packagist.org/packages/ilexn/result-option)

[![GitHub Action](https://github.com/iLexN/result-option/workflows/CI%20Check/badge.svg)](https://github.com/iLexN/result-option/workflows/CI%20Check/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/9d9d84a68211f5817267cdd99cff027726ef1c6410cf14515822cc3ac60f514e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f694c65784e2f726573756c742d6f7074696f6e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/iLexN/result-option?branch=main)[![Mutation testing badge](https://camo.githubusercontent.com/dde73ad40f01bf5c2f91c278f0c890b02c75de2a657d996aba243ae47cda64bc/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246694c65784e253246726573756c742d6f7074696f6e2532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/iLexN/result-option/main)

Installation
------------

[](#installation)

```
composer require ilexn/result-option
```

Usage example
-------------

[](#usage-example)

```
