New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

juststeveking/laravel-stoplight-elements

A simple API documentation package for Laravel using OpenAPI and Stoplight Elements
109,955 44
Install
composer require juststeveking/laravel-stoplight-elements
Latest Version:3.0.1
PHP:^7.4|^8.0|^8.1|^8.2|^8.3
Laravel:8 – 12
License:MIT
Last Updated:Nov 27, 2025
Links: GitHub  ·  Packagist
Maintainer: JustSteveKing

Laravel Stoplight Elements

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-stoplight-elements

Configuration

You can publish the configuration file with:

php artisan vendor:publish --provider="JustSteveKing\Laravel\LaravelStoplight\StoplightServiceProvider" --tag="config"

This is the contents of the published config file:

return [
    'title' => 'API Documentation',
    'path' => [
        'name' => env('STOPLIGHT_PATH_NAME', 'docs'),
        'url' => env('STOPLIGHT_PATH_URL', 'api/docs'),
    ],

    'openapi' => [
        'path' => env('STOPLIGHT_OPENAPI_PATH', 'https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.yaml')
    ],

    'config' => [
        'router' => "hash",

        'layout' => "sidebar",
    ]
];

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

improvit17/laravel-stoplight-elements

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

2,183 0
juststeveking/laravel-redoc

A simple API documentation package for Laravel using OpenAPI and Redoc

358,378 92
sdekkers/compass

Zero-config OpenAPI documentation generator for Laravel modular applications

5,348 0
sciarcinski/laravel-swagger

OpenApi or Swagger integration to Laravel

3,344 0
jurager/documentator

OpenAPI specification generator for Laravel

1,707 0

Version History

Version Released PHP Laravel License
3.0.1 ^7.4|^8.0|^8.1|^8.2|^8.3 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
3.0.0 ^7.4|^8.0|^8.1|^8.2|^8.3 ^8.0|^9.0|^10.0|^11.0 MIT
2.0.0 ^7.4|^8.0 ^8.0|^9.0|^10.0 MIT
1.0.0 ^7.4|^8.0 ^8.0|^9.0 MIT
0.0.5 ^7.4|^8.0 ^8.0 MIT