Search by

stevelacey / laravel-browsable-api

stevelacey

Browsable API for Laravel, based on Django REST Framework's Browsable API

Package info

github.com/stevelacey/laravel-browsable-api

pkg:composer/stevelacey/laravel-browsable-api

Statistics

Installs: 19 900

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 0

1.2.0 2026-08-26 23:54 UTC

This package is auto-updated.

Last update: 2026-08-27 02:43:44 UTC


README

Packagist Version CI Coverage Downloads License: MIT

Laravel Browsable API is a package for serving human-friendly HTML output when using a browser, based on Django REST Framework's Browsable API

Screenshot

The package prepends a middleware to the api router group that wraps responses with a basic Bootstrap 4 based HTML template, and linkifies any URLs found

Installation

composer require stevelacey/laravel-browsable-api

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider

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

SteveLacey\LaravelBrowsableApi\ServiceProvider::class,

Copy the package config and view into your project with the publish command:

php artisan vendor:publish --provider="SteveLacey\LaravelBrowsableApi\ServiceProvider"