PHPackages                             abdulnizam/laravel-macros-response-customised - 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. abdulnizam/laravel-macros-response-customised

ActiveLibrary

abdulnizam/laravel-macros-response-customised
=============================================

Customised Response Macro's for Laravel

v3.2(8y ago)08MITPHPPHP &gt;=5.6

Since Jan 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/abdulnizam/laravel-macros-response-customised)[ Packagist](https://packagist.org/packages/abdulnizam/laravel-macros-response-customised)[ Docs](http://www.freniz.com)[ RSS](/packages/abdulnizam-laravel-macros-response-customised/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

laravel-macros-response-customised
==================================

[](#laravel-macros-response-customised)

laravel package to control the response and customise the dataname as per the requirement.

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

[](#installation)

This package can be installed using composer. Find the comand below

```
composer require abdulnizam/laravel-macros-response-customised
```

Usage
-----

[](#usage)

### Custom

[](#custom)

To use custom run this comand to config the custom variables

```
cp 'vendor/abdulnizam/laravel-macros-response-customised/config/laravelmacros.php' config/laravelmacros.php
```

path : config/laravelmacros.php

custom =&gt; array('status', 'message')

custom\_error =&gt; array('status', 'errors')

then

```
return response()->custom([1, 'Welcome to the laravel macros']);
```

Result

```
{
    "status": 1,
    "message": "Welcome to the laravel macros"
}
```

```
return response()->custom_error([0, 'Welcome to the laravel macros']);
```

Result

```
{
    "status": 0,
    "errors": "Welcome to the laravel macros"
}
```

### Message

[](#message)

```
return response()->message('Welcome to laravel macros", 200);
```

Result

```
{
    "message": "Welcome to laravel macros"
}
```

With the Http `Status Code: 200`

### Error

[](#error)

```
return response()->error('Error message to be displayed', $statuscode = 400);
```

Result

```
{
    "message": "Error message to be displayed"
}
```

With the Http `Status Code: 400`

### Success

[](#success)

```
return response()->success(['dataname' => 'data'], $statuscode = 200);
```

Result

```
{
    "data": {"dataname": "data"}
}
```

With the Http `Status Code: 200`

### PDF

[](#pdf)

PDF responses.

```
return response()->pdf($pdfcontent, 'name.pdf', $download = false);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 51.9% 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

8

Last Release

3027d ago

Major Versions

v1.2 → v2.02018-01-28

v2.1 → v3.02018-01-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fd02ea8acd7f5a49139fbf3cc4cb21367cfc4ae3f701edb9a5f3189b5652d1f?d=identicon)[abdulnizam](/maintainers/abdulnizam)

---

Top Contributors

[![Freniz](https://avatars.githubusercontent.com/u/8893080?v=4)](https://github.com/Freniz "Freniz (27 commits)")[![abdulnizam](https://avatars.githubusercontent.com/u/33617554?v=4)](https://github.com/abdulnizam "abdulnizam (24 commits)")[![valtransprojects](https://avatars.githubusercontent.com/u/33512203?v=4)](https://github.com/valtransprojects "valtransprojects (1 commits)")

---

Tags

responsephplaravelmacrosfrenizcustomised

### Embed Badge

![Health badge](/badges/abdulnizam-laravel-macros-response-customised/health.svg)

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

###  Alternatives

[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[appstract/laravel-response-macros

Extra Response Macro's for Laravel

321.5k](/packages/appstract-laravel-response-macros)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[werxe/laravel-collection-macros

Custom Laravel Collection macros.

2625.8k](/packages/werxe-laravel-collection-macros)

PHPackages © 2026

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