PHPackages                             novaday-co/laravel-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. novaday-co/laravel-api-response

ActiveLibrary[API Development](/categories/api)

novaday-co/laravel-api-response
===============================

This Package helps developers to easily make response for API

31PHP

Since Aug 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/novaday-co/laravel-api-response)[ Packagist](https://packagist.org/packages/novaday-co/laravel-api-response)[ RSS](/packages/novaday-co-laravel-api-response/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Laravel API Response package](https://raw.githubusercontent.com/faridfr/faridfr/master/200px-laravel-api-response.png)](https://raw.githubusercontent.com/faridfr/faridfr/master/200px-laravel-api-response.png)

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

[](#laravel-api-response)

This Package helps developers to easily make response for API . Add extra data to **collection** response . Short magic method that use your translate files to set messages .

---

How to install :
----------------

[](#how-to-install-)

```
composer require novaday-co/laravel-api-response

```

How to use :
------------

[](#how-to-use-)

### Success response

[](#success-response)

```
Api::success("Successful Action")->response();
```

### Success response

[](#success-response-1)

```
Api::success("Successful Action")->response();
```

### Failure response

[](#failure-response)

```
Api::failure("Failed")->response();
```

### Custom response

[](#custom-response)

```
Api::customResponse(201,'Created Successfully',['key'=>'value'])->response();
```

### With `data`

[](#with-data)

```
Api::success('Ok',['key'=>'value'])->response();
```

### External data in `data`

[](#external-data-in-data)

```
Api::success('Ok',[ User::all() ])->withData([ Customer::first() ])->response();
```

### External data next to `data`

[](#external-data-next-to-data)

```
Api::success('Ok',[ User::all() ])->with([ 'Customers' => Customer::all() ])->response();
```

### Short magic method for set messages

[](#short-magic-method-for-set-messages)

```
Api::updated()->response();
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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://www.gravatar.com/avatar/8b3b38fb2c7f00f927b5a43b63d82afb44e4b884714b1b5d5da3eb4502100d84?d=identicon)[faridfr](/maintainers/faridfr)

---

Top Contributors

[![faridfr](https://avatars.githubusercontent.com/u/9497923?v=4)](https://github.com/faridfr "faridfr (25 commits)")

---

Tags

apieasy-responselaravellaravel-apilaravel-responsephpphp-api

### Embed Badge

![Health badge](/badges/novaday-co-laravel-api-response/health.svg)

```
[![Health](https://phpackages.com/badges/novaday-co-laravel-api-response/health.svg)](https://phpackages.com/packages/novaday-co-laravel-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)
