PHP code example of kotamat / laravel-apispec-generator
1. Go to this page and download the library: Download kotamat/laravel-apispec-generator 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/ */
kotamat / laravel-apispec-generator example snippets
return [
// Whether to output spec files.
'isExportSpec' => true,
// Spec builder class name. You can choose ToOAS or ToHTTP.
'builder' => \ApiSpec\Builders\ToOAS::class,
];
bash
php artisan apispec:aggregate