PHPackages                             ilexn/custom-response - 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. ilexn/custom-response

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

ilexn/custom-response
=====================

use PSR 17 Factory to create custom response helper

0.1.0(7y ago)05MITPHPPHP ^7.2

Since Feb 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iLexN/CustomResponse)[ Packagist](https://packagist.org/packages/ilexn/custom-response)[ RSS](/packages/ilexn-custom-response/feed)WikiDiscussions master Synced 4d ago

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

CustomResponse
==============

[](#customresponse)

[![Coverage Status](https://camo.githubusercontent.com/a7dd9424ac3e69cbffc2001686b2c9f61d1eacd4af0cdd09bf7518ef317e7fb9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f694c65784e2f437573746f6d526573706f6e73652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/iLexN/CustomResponse?branch=master)[![Build Status](https://camo.githubusercontent.com/bde95315b842ce95e2c91c0137964f7eebb5550de3722d61eeaf1f9785a94225/68747470733a2f2f7472617669732d63692e6f72672f694c65784e2f437573746f6d526573706f6e73652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/iLexN/CustomResponse)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/00a00d7a07aed8072c204bf8566a31d34c7d4ea45dfcdd3025226396aaf65e87/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f694c65784e2f437573746f6d526573706f6e73652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iLexN/CustomResponse/?branch=master)

Use any PSR 17 Factory to create PSR 7 Response.

Easy to create Json Response, Redirect Response.

Install
-------

[](#install)

Via Composer

```
$ composer require ilexn/custom-response
```

Usage
-----

[](#usage)

```
/** var ResponseFactoryInterface $psr17ResponseFactory **/
$factory = new \Ilex\CustomResponse\CustomResponseFactory($psr17ResponseFactory);
$response = $factory->createJsonResponseFromArray(['data']);

$url = 'http://www.example.com';
$response = $factory->createRedirectResponseFromString($url);

/** var UriInterface $uri **/
$response = $factory->createRedirectResponseFromUri($uri);

$response = $factory->createEmptyResponse();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

2640d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4638751?v=4)[iLexN](/maintainers/iLexN)[@iLexN](https://github.com/iLexN)

---

Top Contributors

[![iLexN](https://avatars.githubusercontent.com/u/4638751?v=4)](https://github.com/iLexN "iLexN (7 commits)")

---

Tags

custom-reponsepsr17psr7psr-7psr-17http-response

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ilexn-custom-response/health.svg)

```
[![Health](https://phpackages.com/badges/ilexn-custom-response/health.svg)](https://phpackages.com/packages/ilexn-custom-response)
```

###  Alternatives

[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k296.6M807](/packages/symfony-psr-http-message-bridge)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[laminas/laminas-diactoros

PSR HTTP Message implementations

546105.8M965](/packages/laminas-laminas-diactoros)[nyholm/psr7-server

Helper classes to handle PSR-7 server requests

9521.1M307](/packages/nyholm-psr7-server)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

586.6M81](/packages/laminas-laminas-stratigility)

PHPackages © 2026

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