PHPackages                             ericksonreyes/rest-api-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. [API Development](/categories/api)
4. /
5. ericksonreyes/rest-api-response

ActiveLibrary[API Development](/categories/api)

ericksonreyes/rest-api-response
===============================

REST API Response Generator Classes for PHP 8

00PHP

Since Jul 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ericksonreyes/rest-api-response)[ Packagist](https://packagist.org/packages/ericksonreyes/rest-api-response)[ RSS](/packages/ericksonreyes-rest-api-response/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

REST API Response Generator Class for PHP 8
===========================================

[](#rest-api-response-generator-class-for-php-8)

[![Code Coverage](https://github.com/ericksonreyes/rest-api-response/raw/master/coverage_badge.svg)](https://github.com/ericksonreyes/rest-api-response/raw/master/coverage_badge.svg)[![Build](https://github.com/ericksonreyes/rest-api-response/actions/workflows/merge.yaml/badge.svg?branch=master)](https://github.com/ericksonreyes/rest-api-response/actions/workflows/merge.yaml)

Nothing fancy. I just created a REST API response generator class that I've been copy-pasting over and over again.

### Installation

[](#installation)

```
composer require ericksonreyes/rest-api-response
```

### Supported formats

[](#supported-formats)

- JSON API

### JSON API Examples

[](#json-api-examples)

- [Resources](docs/examples/jsonapi/RESOURCES.md)
- [Relationships](docs/examples/jsonapi/RELATIONSHIPS.md)
- [Links](docs/examples/jsonapi/LINKS.md)
- [Meta](docs/examples/jsonapi/META.md)
- [Pagination](docs/examples/jsonapi/PAGINATION.md)
- [Errors](docs/examples/jsonapi/ERRORS.md)

### Author

[](#author)

- Erickson Reyes ([GitHub](https://github.com/ericksonreyes), [GitLab](https://gitlab.com/ericksonreyes/), [LinkedIn](https://www.linkedin.com/in/ericksonreyes/) and [Packagist](http://packagist.org/users/ericksonreyes/)).

### License

[](#license)

See [LICENSE](LICENSE)

### Gitlab

[](#gitlab)

This project is also available in [GitLab](https://gitlab.com/ericksonreyes/rest-api-response)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/841321?v=4)[Erickson Reyes](/maintainers/ericksonreyes)[@ericksonreyes](https://github.com/ericksonreyes)

---

Top Contributors

[![ericksonreyes](https://avatars.githubusercontent.com/u/841321?v=4)](https://github.com/ericksonreyes "ericksonreyes (17 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

### Embed Badge

![Health badge](/badges/ericksonreyes-rest-api-response/health.svg)

```
[![Health](https://phpackages.com/badges/ericksonreyes-rest-api-response/health.svg)](https://phpackages.com/packages/ericksonreyes-rest-api-response)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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