PHPackages                             marcusirgens/jsend-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. marcusirgens/jsend-factory

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

marcusirgens/jsend-factory
==========================

JSend factories for PSR-7

v1.0.0(5y ago)0177MITPHPPHP ^7.3

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/marcusirgens/jsend-factory)[ Packagist](https://packagist.org/packages/marcusirgens/jsend-factory)[ RSS](/packages/marcusirgens-jsend-factory/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (11)Versions (3)Used By (0)

JSendFactory
============

[](#jsendfactory)

JSendFactory is a PHP library for creating [JSend-compliant](https://github.com/omniti-labs/jsend) [PSR-7](https://www.php-fig.org/psr/psr-7/) requests.

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/download/) to install the package.

```
composer require marcusirgens/jsend-factory
```

You will also need some [PSR-17](https://www.php-fig.org/psr/psr-17/) implementation. You can find [a list of packages providing this at packagist.org](https://packagist.org/providers/psr/http-factory-implementation). If you're unsure, go for [nyholm/psr7](https://github.com/Nyholm/psr7).

Usage
-----

[](#usage)

```
$responseFactory = new Psr17ResponseFactory();
$streamFactory  = new Psr17StreamFactory();

$jsendFactory = \MarcusIrgens\JSendFactory\JSendFactory(
    $responseFactory,
    $streamFactory
);

$successResponse = $jsendFactory->getSuccess(["message" => "hello"]);
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2056d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8811904?v=4)[Marcus Pettersen Irgens](/maintainers/marcusirgens)[@marcusirgens](https://github.com/marcusirgens)

---

Top Contributors

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

---

Tags

psr-7

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marcusirgens-jsend-factory/health.svg)

```
[![Health](https://phpackages.com/badges/marcusirgens-jsend-factory/health.svg)](https://phpackages.com/packages/marcusirgens-jsend-factory)
```

###  Alternatives

[dragon-code/contracts

A set of contracts for any project

108.8M37](/packages/dragon-code-contracts)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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