PHPackages                             jq/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. jq/response

ActiveLibrary[API Development](/categories/api)

jq/response
===========

Response is an helper class which handles HTTP response, status codes and messages returned from different functions. Useful for unifiying API responses.

v1.0(5y ago)1121MITPHPPHP &gt;=5.3.0CI failing

Since Dec 6Pushed 5y agoCompare

[ Source](https://github.com/JunaidQadirB/Response)[ Packagist](https://packagist.org/packages/jq/response)[ Docs](http://junaidqadir.com)[ RSS](/packages/jq-response/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Response
========

[](#response)

Response is tiny PHP package which handles HTTP response, status codes and messages returned from different functions. Useful for unifiying API responses.

Installation
============

[](#installation)

```
$ composer require jq/response
```

Laravel 5 Configuration
=======================

[](#laravel-5-configuration)

Add the following line to the `providers` array in `app/config.php`

```
JunaidQadir\Response\ResponseServiceProvider::class
```

And the the following line to the `aliases` array in `app/config.php`

```
'AjaxResponse' => JunaidQadir\Response\ResponseFacade::class
```

Standard PHP Usage
==================

[](#standard-php-usage)

to return json in response of an AJAX request

```
$response     = new \JunaidQadir\Response\Response();
echo $response->json('success', 'Thank You');
exit;
```

Laravel5 Usage
==============

[](#laravel5-usage)

```
echo AjaxResponse::json('success', 'Thank You');
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2035d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78691?v=4)[j](/maintainers/jq)[@jq](https://github.com/jq)

---

Top Contributors

[![JunaidQadirB](https://avatars.githubusercontent.com/u/642353?v=4)](https://github.com/JunaidQadirB "JunaidQadirB (11 commits)")[![azeemhassni](https://avatars.githubusercontent.com/u/6503258?v=4)](https://github.com/azeemhassni "azeemhassni (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jq-response/health.svg)

```
[![Health](https://phpackages.com/badges/jq-response/health.svg)](https://phpackages.com/packages/jq-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.0k14](/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)
