PHPackages                             onion/rest - 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. onion/rest

ActiveLibrary[API Development](/categories/api)

onion/rest
==========

2.0.0(8y ago)0189[1 issues](https://github.com/phOnion/rest/issues)[1 PRs](https://github.com/phOnion/rest/pulls)PHPPHP ^7.2

Since Apr 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/phOnion/rest)[ Packagist](https://packagist.org/packages/onion/rest)[ RSS](/packages/onion-rest/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

rest
====

[](#rest)

RESTful additions for onion/framework

As of now this package provides support for:

- `application/json`: returns all data from the entity to the client as a `json_encode`d value
- `application/hal+json`: "Big" HAL response with automatically replacing link placeholders with the items available as data for the object.
- `application/api+json`: The foundation for JSON-API responses
- `application/ld+json`: (Needs testing) A minimal JSON-LD capable serialization.

ToDo:

- Write more tests
- JSONAPI Transformation
- Investigate JSON-LD

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~4 days

Total

3

Last Release

2986d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2286949?v=4)[Dimitar Dimitrov](/maintainers/DaGhostman)[@DaGhostman](https://github.com/DaGhostman)

---

Top Contributors

[![DaGhostman](https://avatars.githubusercontent.com/u/2286949?v=4)](https://github.com/DaGhostman "DaGhostman (109 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onion-rest/health.svg)

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

###  Alternatives

[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)[google/apiclient

Client library for Google APIs

9.8k205.9M1.1k](/packages/google-apiclient)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[google/gax

Google API Core for PHP

267116.3M567](/packages/google-gax)[linecorp/line-bot-sdk

SDK of the LINE BOT API for PHP

7413.2M22](/packages/linecorp-line-bot-sdk)

PHPackages © 2026

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