PHPackages                             jder/psr - 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. jder/psr

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

jder/psr
========

A response builder for PSR

0.2.0(3mo ago)11MITPHPPHP ^8.1.0CI passing

Since Dec 14Pushed 2w agoCompare

[ Source](https://github.com/jderstd/psr)[ Packagist](https://packagist.org/packages/jder/psr)[ Docs](https://github.com/jderstd/psr)[ RSS](/packages/jder-psr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (14)Versions (11)Used By (0)

JDER PSR
========

[](#jder-psr)

A response builder for PSR.

This package includes different response builders based on the JSON response structure specified in [JSON Data Errors Response (JDER)](https://github.com/jderstd/spec). With the builders, various kinds of responses can be created easily instead of sending plain text responses.

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

[](#installation)

Install this package as a dependency in the project:

```
composer require jder/psr
```

Quick Start
-----------

[](#quick-start)

To create a JSON response, use the following code:

```
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
use Jder\Psr\Json\CreateJsonResponse;

function route(
    Request $request,
    Response $response,
): Response {
    return CreateJsonResponse::success($response)->create();
}
```

And the response will be shown as below:

```
{
    "success": true,
    "data": null,
    "errors": []
}
```

Documentation
-------------

[](#documentation)

For the documentation,please refer to the [documentation](https://github.com/jderstd/psr/blob/main/docs/README.md).

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

[](#contributing)

For contributing, please refer to the [contributing guide](https://github.com/jderstd/psr/blob/main/CONTRIBUTING.md).

License
-------

[](#license)

This project is licensed under the terms of the MIT license.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance89

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.4% 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

Every ~91 days

Total

2

Last Release

107d ago

### Community

Maintainers

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

---

Top Contributors

[![alpheusmtx](https://avatars.githubusercontent.com/u/26622568?v=4)](https://github.com/alpheusmtx "alpheusmtx (50 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")

---

Tags

builderjderjsonphppsrresponseresponsepsrphpjder

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jder-psr/health.svg)

```
[![Health](https://phpackages.com/badges/jder-psr/health.svg)](https://phpackages.com/packages/jder-psr)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[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)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[lctrs/psalm-psr-container-plugin

Let Psalm understand better psr11 containers

17679.3k13](/packages/lctrs-psalm-psr-container-plugin)

PHPackages © 2026

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