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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity30

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://www.gravatar.com/avatar/9a905191cc2ddf71d9092d0c4ddc28861bfa3f5d6f52c4d6e3cab342927b3ff2?d=identicon)[kalyan312](/maintainers/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

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