PHP code example of vvvladv / evo-swagger

1. Go to this page and download the library: Download vvvladv/evo-swagger 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/ */

    

vvvladv / evo-swagger example snippets


return [
    'openapi' => '3.0.0',
    'controllers_path' => [
        'core/vendor/acme/package/src/Api',
        'core/custom/OpenApi/stubs',
    ],
    'output' => 'assets/modules/ApiDocs/docs/openapi.json',
    'module_name' => 'API документация',
];
bash
php artisan package:install
bash
composer update vvvladv/evo-swagger
php artisan package:discover
bash
php artisan vendor:publish --provider="EvolutionCMS\EvoSwagger\EvoSwaggerServiceProvider" --tag=evo-swagger-assets
bash
php artisan vendor:publish --provider="EvolutionCMS\EvoSwagger\EvoSwaggerServiceProvider" --tag=evo-swagger-config
text
evo-swagger/
├── composer.json
├── config/evo-swagger.php
├── src/
│   ├── EvoSwaggerServiceProvider.php
│   ├── Module.php
│   ├── ConfigStore.php
│   ├── OpenApiSpecGenerator.php
│   └── Console/GenerateOpenApiCommand.php
└── assets/modules/ApiDocs/
    ├── module.php
    ├── index.php
    ├── ajax.php
    ├── frontend/
    └── docs/