PHPackages                             codearchitect/json\_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. codearchitect/json\_response

ActiveLibrary[API Development](/categories/api)

codearchitect/json\_response
============================

Take the value user assign/enter to the properties of the class. And return the json formatted response.

111PHP

Since Mar 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/code-architect/json-responser-package)[ Packagist](https://packagist.org/packages/codearchitect/json_response)[ RSS](/packages/codearchitect-json-response/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

\#json-responser-package Take the value user assign/enter to the properties of the class. And return the json formatted response.

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

[](#installation)

composer require codearchitect/json\_response

### Usage

[](#usage)

```
require_once "vendor/autoload.php";

$test= [
    'name'  =>  'code-architect',
    'task'  =>  'developer',
    'email' =>  'email@xyz.com',
    'tech'  =>  ['php', 'mysql', 'mongodb', 'elastic-search']
];

new \CodeArchitect\ResponseClass\JsonResponse('ok', '', $test);
```

### Param 1 (required)

[](#param-1-required)

1. success or ok - 200 http status
2. unauthorized - 401 http status
3. exception - 500 http status

### Param 2 (optional)

[](#param-2-optional)

string - the return message, use empty quote if message is not available

### Param 3 (required)

[](#param-3-required)

array - data array

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

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/d880f1b11b4420fa28cfda2eacae92e68907d76d876ef8e4f29f7309f5363dcb?d=identicon)[code-architect](/maintainers/code-architect)

---

Top Contributors

[![code-architect](https://avatars.githubusercontent.com/u/8597528?v=4)](https://github.com/code-architect "code-architect (9 commits)")

### Embed Badge

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

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