PHPackages                             jeybin/apiresponse - 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. jeybin/apiresponse

ActiveLibrary[API Development](/categories/api)

jeybin/apiresponse
==================

Laravel api response helper

v1.5(3y ago)0113↓93.8%MITPHP

Since Jan 10Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel API Response Helper
===========================

[](#laravel-api-response-helper)

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

[](#installation)

You can install the package via composer:

```
  composer require jeybin/apiresponse
```

To publish providers and to copy the config files run :

```
  php artisan apiresponse:install
```

Usage

If you want to get the response as array you can use:

```
  \Jeybin\Apiresponse\ThrowResponse::status(200)
                              ->message('User defined message')
                              ->get(['can send array or string or empty'])
```

or else if you want to throw the response you can use:

```
  \Jeybin\Apiresponse\ThrowResponse::status(200)
                              ->message('User defined message')
                              ->throw(['can send array or string or empty'])
```

Without message

```
  \Jeybin\Apiresponse\ThrowResponse::status(200)
                              ->throw(['can send array or string or empty'])
```

```
  \Jeybin\Apiresponse\ThrowResponse::status('success')->throw()
```

Some of the status codes are already defined in the config/jeybin-apiresponse.php file, if you want to add more update that file

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

1270d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43aa6da4b21c153b17508135de7fde9f34ee9c2f532d64dc0cca1b82ee973307?d=identicon)[jeybin](/maintainers/jeybin)

---

Top Contributors

[![jeybin](https://avatars.githubusercontent.com/u/32933024?v=4)](https://github.com/jeybin "jeybin (1 commits)")

### Embed Badge

![Health badge](/badges/jeybin-apiresponse/health.svg)

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

###  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.0k15](/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)
