juststeveking/laravel-redoc

A simple API documentation package for Laravel using OpenAPI and Redoc
354,249 92
Install
composer require juststeveking/laravel-redoc
Latest Version:2.1.0
PHP:^8.0
Laravel:10 · 11
Older releases:8 · 9
License:MIT
Last Updated:Jun 11, 2024
Links: GitHub  ·  Packagist
Maintainer: JustSteveKing

Laravel Redoc

Latest Version on Packagist Software License Build Status Total Downloads

Easily publish your API documentation using your OpenAPI document in your Laravel Application.

Installation

You can install this package via composer:

composer require juststeveking/laravel-redoc

Enabling Alfred

To enable Alfred on your docs, visit: https://www.treblle.com/product/alfred or https://docs.treblle.com/treblle/ai-assistant

Configuration

You can publish the configuration file with:

php artisan vendor:publish --provider="JustSteveKing\Laravel\LaravelRedoc\RedocServiceProvider" --tag="config"

This is the contents of the published config file:

return [
    'path' => [
        'name' => env('REDOC_PATH_NAME', 'docs'),
        'url' => env('REDOC_PATH_URL', 'api/docs'),
    ],
    
    'alfred' => [
        'enabled' => env('REDOC_ALFRED', true),
        'project_id' => env('ALFRED_PROJECT_ID', null),
        'api_key' => env('ALFRED_API_KEY', null),
    ],

    'openapi' => [
        'path' => env('REDOC_OPENAPI_PATH', 'http://petstore.swagger.io/v2/swagger.json')
    ],

    'config' => [
        'search' => false,

        'hostname' => false,

        'loading' => false,

        'menu' => true,

        'scrollbars' => true,

        'trust' => true,
    ]
];

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email juststevemcd@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

noitran/opendox

OpenApi(Swagger) 3.0 package for Lumen 5.5+ and Laravel 5.5+ with REDOC UI and S...

14,954 22
io-digital/opendox

OpenApi(Swagger) 3.0 package for Laravel 9 with REDOC UI and SwaggerUI 3

1,491 1
bbrody/swagger-lume

OpenApi or Swagger integration to Lumen

572 0
webparking/laravel-openapi-validator

An OpenAPI documentation validator using your existing Laravel tests

20,035 1
improvit17/laravel-stoplight-elements

A simple API documentation package for Laravel using OpenAPI and Stoplight Eleme...

1,975 0

Version History

Version Released PHP Laravel License
2.1.0 ^8.0 ^10.0|^11.0 MIT
2.0.1 ^8.0 ^10.0 MIT
2.0.0 ^8.0 ^10.0 MIT
1.0.0 ^8.0 ^9.0 MIT
0.0.2 ^8.0 ^8.0 MIT