PHP code example of juststeveking / laravel-stoplight-elements
1. Go to this page and download the library: Download juststeveking/laravel-stoplight-elements library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
juststeveking / laravel-stoplight-elements example snippets
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",
]
];
bash
php artisan vendor:publish --provider="JustSteveKing\Laravel\LaravelStoplight\StoplightServiceProvider" --tag="config"