This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from sunrise-php/release/v2.0.3
v2.0.3
- Loading branch information
Showing
2 changed files
with
3 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1 @@ | ||
# HTTP factory for PHP 7.1+ based on PSR-17 | ||
|
||
[![Build Status](https://circleci.com/gh/sunrise-php/http-factory.svg?style=shield)](https://circleci.com/gh/sunrise-php/http-factory) | ||
[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/http-factory/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-factory/?branch=master) | ||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/http-factory/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-factory/?branch=master) | ||
[![Total Downloads](https://poser.pugx.org/sunrise/http-factory/downloads?format=flat)](https://packagist.org/packages/sunrise/http-factory) | ||
[![Latest Stable Version](https://poser.pugx.org/sunrise/http-factory/v/stable?format=flat)](https://packagist.org/packages/sunrise/http-factory) | ||
[![License](https://poser.pugx.org/sunrise/http-factory/license?format=flat)](https://packagist.org/packages/sunrise/http-factory) | ||
|
||
--- | ||
|
||
## Installation | ||
|
||
```bash | ||
composer require sunrise/http-factory | ||
``` | ||
|
||
## How to use? | ||
|
||
```php | ||
use Sunrise\Http\Factory\RequestFactory; | ||
use Sunrise\Http\Factory\ResponseFactory; | ||
use Sunrise\Http\Factory\ServerRequestFactory; | ||
use Sunrise\Http\Factory\StreamFactory; | ||
use Sunrise\Http\Factory\UploadedFileFactory; | ||
use Sunrise\Http\Factory\UriFactory; | ||
|
||
// just use PSR-17 methods... | ||
``` | ||
|
||
## Based on the following packages | ||
|
||
* https://github.com/sunrise-php/http-message | ||
* https://github.com/sunrise-php/http-server-request | ||
* https://github.com/sunrise-php/stream | ||
* https://github.com/sunrise-php/uri | ||
|
||
--- | ||
|
||
## Test run | ||
|
||
```bash | ||
composer test | ||
``` | ||
|
||
## Useful links | ||
|
||
* https://www.php-fig.org/psr/psr-17/ | ||
⚠️ This package was **moved** to the [http-message](https://github.com/sunrise-php/http-message) package and is abandoned. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters