PHPackages                             bulldog/http-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bulldog/http-factory

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bulldog/http-factory
====================

A PSR-17 compliant HTTP Factory

v1.0.1(5y ago)2515MITPHPCI failing

Since Aug 1Pushed 5y ago3 watchersCompare

[ Source](https://github.com/bulldogcreative/http-factory)[ Packagist](https://packagist.org/packages/bulldog/http-factory)[ RSS](/packages/bulldog-http-factory/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

PSR-17 HTTP Factory library
===========================

[](#psr-17-http-factory-library)

[![Build Status](https://camo.githubusercontent.com/22eed4c74b14f4e2fe7c2b8c145f68359dbed80c559a1781e29e14d0775557b8/68747470733a2f2f7472617669732d63692e6f72672f62756c6c646f6763726561746976652f687474702d666163746f72792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bulldogcreative/http-factory)

This library aims to provide a simple implementation of PSR-17 (HTTP Factories). It current supports Guzzle/Psr7 and Zend Diactoros. Installation and usage examples are below, but if you have any questions or issues, please create an issue.

Installation
------------

[](#installation)

```
composer require bulldog/http-factory
```

Usage
-----

[](#usage)

You can use the [FactoryBuilder](src/FactoryBuilder.php) class to create the HTTP Factory of your choice, or you can instantiate them directly. Currently your choices are `guzzle` and `zend`. Each factory implements [HttpFactoryInterface](src/Interfaces/HttpFactoryInterface.php). Since this library uses PSR-17 all of the individual factories returned will implement their corresponding PSR-17 interface. For more detailed usage, please see the [tests](tests/) folder.

### FactoryBuilder

[](#factorybuilder)

```
