Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #18 from sunrise-php/release/v2.0.3
Browse files Browse the repository at this point in the history
v2.0.3
  • Loading branch information
fenric committed Dec 31, 2022
2 parents ff1e9c2 + 5670590 commit c923fcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 49 deletions.
49 changes: 1 addition & 48 deletions README.md
@@ -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.
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -49,5 +49,6 @@
"phpdoc -d src/ -t phpdoc/",
"XDEBUG_MODE=coverage phpunit --coverage-html coverage/"
]
}
},
"abandoned": "sunrise/http-message"
}

0 comments on commit c923fcd

Please sign in to comment.