LaravelPackages.net
Acme Inc.
Toggle sidebar
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.

38
1
About khbd/laravel-view-to-json

khbd/laravel-view-to-json is a Laravel package for 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.. It currently has 1 GitHub stars and 38 downloads on Packagist. Install it with composer require khbd/laravel-view-to-json. Discover more Laravel packages by khbd or browse all Laravel packages to compare alternatives.

Last updated

Laravel View To JSON

Laravel View to JSON provide json response for API data.

Usage

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

Why?

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

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

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

Khbd\View2json\View2JsonServiceProvider::class

Usage

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

Star History Chart