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 3w 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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2110d 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

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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