PHPackages                             bibrokhim/laravel-force-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. [HTTP &amp; Networking](/categories/http)
4. /
5. bibrokhim/laravel-force-json-response

ActiveLaravel-package[HTTP &amp; Networking](/categories/http)

bibrokhim/laravel-force-json-response
=====================================

Force JSON response for every request

1.0.0(3y ago)01.0k↑13.3%MITPHP

Since Aug 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bibrokhim/laravel-force-json-response)[ Packagist](https://packagist.org/packages/bibrokhim/laravel-force-json-response)[ RSS](/packages/bibrokhim-laravel-force-json-response/feed)WikiDiscussions main Synced 2w ago

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

Force JSON Response for every request
=====================================

[](#force-json-response-for-every-request)

This library checks the Accept header of each request. If the header is missing or has a value other than `application/json`, then the value will be set to `application/json`. This is enough for Laravel to return each response in JSON format. Install the package through Composer. Run the Composer require command from the Terminal:

```
composer require bibrokhim/laravel-force-json-response

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1112d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/74450789?v=4)[Bakhromjon](/maintainers/bibrokhim)[@bibrokhim](https://github.com/bibrokhim)

---

Top Contributors

[![bibrokhim](https://avatars.githubusercontent.com/u/74450789?v=4)](https://github.com/bibrokhim "bibrokhim (3 commits)")

### Embed Badge

![Health badge](/badges/bibrokhim-laravel-force-json-response/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25026.8M85](/packages/php-http-cache-plugin)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

85997.3k131](/packages/httpsoft-http-message)[thesis/nats

Async (fiber based) client for Nats.

758.3k](/packages/thesis-nats)

PHPackages © 2026

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