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 1mo ago

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

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

[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)
