New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

folksyfolks/l5-swagger

OpenApi or Swagger integration to Laravel
16,207
Install
composer require folksyfolks/l5-swagger
Latest Version:8.6.1
PHP:^7.2 || ^8.0
Laravel:7 – 11
Older releases:5 · 6
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

darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

43,155,873 2,932
imjarek/laravel-swagger

OpenApi or Swagger integration to Laravel

1,310 1
juzaweb/l5-swagger

OpenApi or Swagger integration to Laravel

1,058 0
lumen-utils/swagger-lumen

OpenApi or Swagger integration to Lumen

901 0
darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

2,532,232 331

Version History

Version Released PHP Laravel License
8.6.1 ^7.2 || ^8.0 ^11.0 || ^10.0 || ^9.0 || >=8.40.0 || ^7.0 MIT
8.3.0 ^7.2 || ^8.0 ^9.0 || >=8.40.0 || ^7.0 MIT
8.2.1 ~8.0 >=v9.0.0 || ^7.0 MIT
8.2.0 ^7.2 || ^8.0 >=8.40.0 || ^7.0 MIT
8.1.1 ^7.2 || ^8.0 >=8.40.0 || ^7.0 MIT