opsbears / piccolo-web-io-standard
This package is abandoned and no longer maintained.
No replacement package was suggested.
1.0-alpha1
2016-07-22 07:14 UTC
This package is not auto-updated.
Last update: 2020-10-16 21:32:35 UTC
README
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.