Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jan 2, 2021
1 parent b2ee2fa commit 8df50e4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ A ZIP responder (PSR-7).
* [Sending a ZIP stream](#sending-a-zip-stream)
* [Sending a ZipStream-PHP archive](#sending-a-zipstream-php-archive)
* [Sending a ZipArchive file](#sending-a-ziparchive-file)
* [Sending a compressed HTTP response](#)
* [Slim 4 Integration](#slim-4-integration)
* [Sending a compressed HTTP response](#)
* [Slim 4 Integration](#slim-4-integration)

## Requirements

Expand All @@ -37,6 +37,12 @@ There are multiple A PSR-7 StreamFactory implementations available.
* [slim/psr7](https://github.com/slimphp/Slim-Psr7)
* [nyholm/psr7](https://github.com/Nyholm/psr7)

To install `slim/psr7`, run:

```
composer require slim/psr7
```

## Usage

Creating a new responder instance using the `slim/psr7` StreamFactory:
Expand Down Expand Up @@ -165,7 +171,7 @@ As exciting as it may appear, HTTP Compression isn’t all fun and games. Here
be a net win. Using CPU cycles for a faster user experience is well worth it,
given the short attention spans on the web.

### Slim 4 Integration
## Slim 4 Integration

Insert a DI container definition: `StreamFactoryInterface::class`

Expand Down

0 comments on commit 8df50e4

Please sign in to comment.