PHPackages                             linku/feedback - 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. linku/feedback

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

linku/feedback
==============

Abstract layer between services and output in PHP

1.0.3(4y ago)1515.0k↑174.7%1MITPHPPHP ^7.2.0|^8.0.0CI failing

Since Feb 23Pushed 4y ago11 watchersCompare

[ Source](https://github.com/LinkuNijmegen/Feedback)[ Packagist](https://packagist.org/packages/linku/feedback)[ RSS](/packages/linku-feedback/feed)WikiDiscussions main Synced yesterday

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

Linku/Feedback
==============

[](#linkufeedback)

[![Build Status](https://camo.githubusercontent.com/c4022fc6e691116dc2185abadd32624968a1ce42c0faa9c41f7b42b625818719/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696e6b756e696a6d6567656e2f666565646261636b2f6d6173746572)](https://travis-ci.org/LinkuNijmegen/Feedback)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/fbdad7bfaeb8de9b5afacfccb710d704e2b451462fdcccd558a21e786db403ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696e6b752f666565646261636b2e737667)](https://packagist.org/packages/linku/feedback)

Feedback is an io abstraction that lets you decouple functional code and business logic from (CLI) I/O.

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

[](#installation)

```
composer require linku/feedback

```

Use
---

[](#use)

In the class or service you want to decouple, add a `Feedback` attribute and make sure it is filled with an instance of `NoFeedback` by default.

In order to allow the code calling this service to override the default feedback, add a `setFeedback` method.

In the logic of your service, you can now call the feedback methods.

```
