folksyfolks/l5-swagger

OpenApi or Swagger integration to Laravel
14,419
Install
composer require folksyfolks/l5-swagger
Latest Version:8.6.1
PHP:^7.2 || ^8.0
License:MIT
Last Updated:Apr 19, 2024
Links: GitHub  ·  Packagist
Maintainer: FolksHR

L5-swagger ( Folksy adaptation )

This is a fork from DarkaOnLine's L5-swagger. The version is locked to version 8.1.0.

For more information on how to use this package, please refer to the original fork.

Changes

The main change from this package is the ability to define, from the "scanOptions" config key, after which processor we want to add our custom processor.

Usage

For the base usage please refer to the original documentation.

As for the custom usage, we simpy added a config key append-processors-after, under scanOptions :

// l5-swagger.php
return [
    'default' => 'default',
    'documentations' => [
       /* ... */
    ],
    'defaults' => [ 
        /* ... */
        'scanOptions' => [
            /* ... */
            'processors' => [
                // new \App\SwaggerProcessors\SchemaQueryParameter(),
            ],

            /**
             * Define after which Open Api's processors we want to happens the custom one.
             */
            'append-processors-after' => \OpenApi\Processors\BuildPaths::class,

            /* ... */
        ],
    /* ... */
];

The default value is \OpenApi\Processors\BuildPaths::class, which is the original value in the original fork.

Related Packages

giahojnost/lumen-swagger

OpenApi or Swagger integration to Lumen, Retouched based on DarkaOnLine/SwaggerL...

28 0
darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

41,089,297 2,935
yaangvu/swagger-lume

OpenApi or Swagger integration to Lumen

7 0
darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

2,477,224 330
binbinly/swagger-lume

OpenApi or Swagger integration to Lumen

15 0