The Piccolo standard Web IO components Build Status Code Coverage Scrutinizer Code Quality

This module registers standard PHP web input/output mechanisms ($_GET, $_POST, etc) for use with Piccolo. You can, of course, replace this module with your own implementation if you want to run your application via some other means (for example a queue processor).

Warning! Because of the nature of PHP (STDIN can only be read once, etc) this module contains side effects.

How it works

The Piccolo Web module defines two interfaces IO modules must implement:

  • The InputProcessor takes the input from some source and creates a PSR-7 compatible request object that is then used further down the application.
  • The OutputProcessor takes a PSR-7 response and sends it to a client.

These functions are implemented by StandardInputProcessor and StandardOutputProcessor, respectively.