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

ActiveLibrary[API Development](/categories/api)

victorandrad/laravel-response-api
=================================

Adds JSON response to API in Laravel or Lumen projects

02PHP

Since Jul 15Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Response API
============

[](#response-api)

About
-----

[](#about)

The `laravel-response-api` package allows you to standardize the responses of your api that will be consumed.

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

[](#installation)

Require the `victorandrad/laravel-response-api` package in your `composer.json` and update your dependencies:

```
$ composer require victorandrad/laravel-response-api
```

Global usage
------------

[](#global-usage)

To use Response you must include it in your Controller, include the in the return of your method you want it to return:

```
public function User {
	//return success
	$json = //my object
	return Response::json(ResponseUtil::makeResponse('DONE', $json), Response::HTTP_OK);

	//return error
	$json = //my object
	return Response::json(ResponseUtil::makeError('NOT_FOUND', $json), Response::HTTP_NOT_FOUND);
}
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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/49730046?v=4)[Victor Andrade Ferreira](/maintainers/victorandrad)[@victorandrad](https://github.com/victorandrad)

---

Top Contributors

[![victorandrad](https://avatars.githubusercontent.com/u/49730046?v=4)](https://github.com/victorandrad "victorandrad (7 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/victorandrad-laravel-response-api/health.svg)](https://phpackages.com/packages/victorandrad-laravel-response-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/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)
