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)0107↓50%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 1mo ago

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 32% 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

1222d 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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