PHPackages                             aaronmacaron/reaction - 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. aaronmacaron/reaction

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

aaronmacaron/reaction
=====================

Library for dealing with reactions of actions

1.0.0(7y ago)2771PHPPHP &gt;=7.1

Since Apr 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Aaronmacaron/reaction)[ Packagist](https://packagist.org/packages/aaronmacaron/reaction)[ RSS](/packages/aaronmacaron-reaction/feed)WikiDiscussions master Synced 2d ago

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

Reaction Library
================

[](#reaction-library)

[![Travis](https://camo.githubusercontent.com/95961214066bfc21f1bc24af71bd64031a0f4a20b780f5982e9e7c9475b2030f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4161726f6e6d616361726f6e2f7265616374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Aaronmacaron/reaction)[![Packagist](https://camo.githubusercontent.com/2bb91a0425541f420b5991d843bbdc6dc85a059c9af70937e176920ab1fb378c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6161726f6e6d616361726f6e2f7265616374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aaronmacaron/reaction)

This library makes it easy to handle reactions of actions, methods and functions. If you are dealing with methods that can either be successful or fail and want more information about the result of the method, you can use a reaction.

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

[](#installation)

You can install reaction using [Composer](https://getcomposer.org/):

```
$ composer require aaronmacaron/reaction
```

To install and use the reaction library you need PHP version 7.1 or newer.

Example
-------

[](#example)

You can use this library as follows:

```
