PHPackages                             studiow/plates-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. studiow/plates-http-factory

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

studiow/plates-http-factory
===========================

Plates adapter for PSR-7 HTTP message factories

v1.0.0(7y ago)024MITPHP

Since Nov 28Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

plates-http-factory
===================

[](#plates-http-factory)

Plates adapter for ResponseFactories as defined in [PSR-17](https://www.php-fig.org/psr/psr-17/)

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

[](#installation)

The (highly) recommended way to install this package is by using [Composer](https://getcomposer.org/)

```
composer require studiow/plates-http-factory
```

You will also need a package that implements PSR-17:

Usage
-----

[](#usage)

All the examples use [http-interop/http-factory-guzzle](https://packagist.org/packages/http-interop/http-factory-guzzle).

### Basic usage

[](#basic-usage)

```
$factory = new \Studiow\Plates\ResponseFactory(
    new \League\Plates\Engine('/path/to/templates'), //the plates engine
    new \Http\Factory\Guzzle\ResponseFactory()      //a psr-17 compatible response factory
);

//rendering the template at /path/to/templates/pages/home.php with additional data
$response = $factory->createResponse(
    'pages/home',
    ['title'=>'home']
);
```

### Using HTTP response codes

[](#using-http-response-codes)

```
$factory = new \Studiow\Plates\ResponseFactory(
    new \League\Plates\Engine('/path/to/templates'),
    new \Http\Factory\Guzzle\ResponseFactory()
);

$response = $factory->createResponse(
    'error/page-not-found', //name of the template
    ['title'=>'Page not found!'], //data to be passed to the template
    404,     //http status code
    'Not Found' //http reason phrase
);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2723d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b57a4311f92e06e73f6c646344a069d0088747f22e420a583f91bd3e6ab1729?d=identicon)[studiowbe](/maintainers/studiowbe)

---

Top Contributors

[![willemwollebrants](https://avatars.githubusercontent.com/u/916958?v=4)](https://github.com/willemwollebrants "willemwollebrants (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/studiow-plates-http-factory/health.svg)

```
[![Health](https://phpackages.com/badges/studiow-plates-http-factory/health.svg)](https://phpackages.com/packages/studiow-plates-http-factory)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)[spiral/roadrunner-http

RoadRunner: HTTP and PSR-7 worker

779.2M48](/packages/spiral-roadrunner-http)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
