PHPackages                             khbd/laravel-view-to-json - 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. khbd/laravel-view-to-json

ActiveLibrary[API Development](/categories/api)

khbd/laravel-view-to-json
=========================

Laravel view to json with automatically convert view to json. This api help you to build API. Laravel view to json is very simple configurable.

138PHP

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kalyan312/laravel-view-to-json)[ Packagist](https://packagist.org/packages/khbd/laravel-view-to-json)[ RSS](/packages/khbd-laravel-view-to-json/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel View To JSON
====================

[](#laravel-view-to-json)

Laravel View to JSON provide json response for API data.

Usage
-----

[](#usage)

Before sending request add `?response=json` to any url, you will get all the view data in JSON format.

Why?
----

[](#why)

When you have no time to create separate API but you want json data from view, this package will fulfil your requirement.

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

[](#installation)

You can install the package via composer:

```
composer require khbd/laravel-view-to-json
```

The package will register itself automatically.

Then publish the package configuration file

```
php artisan vendor:publish --provider=Khbd\View2json\View2JsonServiceProvider
```

### Older Laravel versions

[](#older-laravel-versions)

If you can't use auto-discovery, add the ServiceProvider to the providers array in `config/app.php`.

```
Khbd\View2json\View2JsonServiceProvider::class

```

Usage
-----

[](#usage-1)

Before sending request add `?response=json` to any url, you will get all the view data in JSON format.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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://avatars.githubusercontent.com/u/10464136?v=4)[Kalyan Halder](/maintainers/kalyan312)[@kalyan312](https://github.com/kalyan312)

### Embed Badge

![Health badge](/badges/khbd-laravel-view-to-json/health.svg)

```
[![Health](https://phpackages.com/badges/khbd-laravel-view-to-json/health.svg)](https://phpackages.com/packages/khbd-laravel-view-to-json)
```

###  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.0k15](/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)
