PHPackages                             khasinski/php-solid-use-case - 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. khasinski/php-solid-use-case

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

khasinski/php-solid-use-case
============================

SolidUseCase pattern in PHP - Railway-oriented programming with Either/Success/Fail monads

17PHP

Since Jan 20Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/khasinski/SolidUseCase)[ Packagist](https://packagist.org/packages/khasinski/php-solid-use-case)[ RSS](/packages/khasinski-php-solid-use-case/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP SolidUseCase
================

[](#php-solidusecase)

A PHP implementation of the [SolidUseCase](https://github.com/mindeavor/solid_use_case) pattern - Railway-oriented programming with Either/Success/Fail monads.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher

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

[](#installation)

```
composer require khasinski/php-solid-use-case
```

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

Create a use case class that uses the `SolidUseCase` trait and define your steps:

```
