PHPackages                             xgbnl/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. xgbnl/response

ActiveLibrary[API Development](/categories/api)

xgbnl/response
==============

RESTFul style JSON responder.

024PHP

Since Apr 9Pushed 2mo agoCompare

[ Source](https://github.com/xgbnl/laravel-response)[ Packagist](https://packagist.org/packages/xgbnl/response)[ RSS](/packages/xgbnl-response/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

### RESTFul style JSON responder.

[](#restful-style-json-responder)

> Registered for API routing group

#### install

[](#install)

```
composer require xgbnl/response dev-main
```

#### GET Method.

[](#get-method)

```
{
  "msg": "success",
  "code": 200,
  "data": null
}
```

#### POST、PATCH Methods.

[](#postpatch-methods)

```
{
  "msg": "created",
  "code": 201,
  "data": null
}
```

#### DELETE Method.

[](#delete-method)

```
{
  "msg": "deleted",
  "code": 204,
  "data": null
}
```

Exclude middleware
------------------

[](#exclude-middleware)

```
Route::withoutMiddleware('body.advice')->get('tests',[TestController::class,'test']);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance56

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52394568?v=4)[Daifei](/maintainers/xgbnl)[@xgbnl](https://github.com/xgbnl)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/xgbnl-response/health.svg)

```
[![Health](https://phpackages.com/badges/xgbnl-response/health.svg)](https://phpackages.com/packages/xgbnl-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.0k14](/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)
