Package
laravel-stoplight-elements
A simple API documentation package for Laravel using OpenAPI and Stoplight Elements
dev-main102,368 downloads44 stars
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-elementsConfiguration
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
More Packages
mavis
Run a freelance business from plain files: clients, calls and follow-ups, time, quotes and invoices as Markdown, from one Go binary, with an MCP server for agents.
v0.1.3
PHPcloudevents
Cloud Events in PHP.
dev-main
PHPcompanies-house-laravel
A Laravel wrapper to get companies house information and validate company numbers
v1.2.0
Same subject
In other formats
Automating your OpenAPI Documentation
Learn to automate API documentation in Laravel with a design-first approach using OpenAPI, Scribe, and efficient pagination in this practical tutorial.
API Design
VideoBuilding an API using API Platform and OpenAPI
Join us for an in-depth livestream as we explore the world of API development using API Platform and OpenAPI. With special guest Jim Secondé from Vonage, we'll be diving deep into the intricacies of A
API Design