Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zendframework/zend-httphandlerrunner

Execute PSR-15 RequestHandlerInterface instances and emit responses they generate.
https://github.com/zendframework/zend-httphandlerrunner

php php71 psr-15 psr-7 zend-framework

Last synced: 10 days ago
JSON representation

Execute PSR-15 RequestHandlerInterface instances and emit responses they generate.

Awesome Lists containing this project

README

        

# zend-httphandlerrunner

> ## Repository abandoned 2019-12-31
>
> This repository has moved to [laminas/laminas-httphandlerrunner](https://github.com/laminas/laminas-httphandlerrunner).

[![Build Status](https://secure.travis-ci.org/zendframework/zend-httphandlerrunner.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-httphandlerrunner)
[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-httphandlerrunner/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-httphandlerrunner?branch=master)

This library provides utilities for:

- Emitting [PSR-7](https://www.php-fig.org/psr/psr-7) responses.
- Running [PSR-15](https://www.php-fig.org/psr/psr-15) server request handlers,
which involves marshaling a PSR-7 `ServerRequestInterface`, handling
exceptions due to request creation, and emitting the response returned by the
composed request handler.

The `RequestHandlerRunner` will be used in the bootstrap of your application to
fire off the `RequestHandlerInterface` representing your application.

## Installation

Run the following to install this library:

```bash
$ composer require zendframework/zend-httphandlerrunner
```

## Documentation

Documentation is [in the doc tree](docs/book/), and can be compiled using [mkdocs](http://www.mkdocs.org):

```bash
$ mkdocs build
```

You may also [browse the documentation online](https://docs.zendframework.com/zend-httphandlerrunner/).