PHPackages                             giahojnost/lumen-swagger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. giahojnost/lumen-swagger

ActiveLibrary[API Development](/categories/api)

giahojnost/lumen-swagger
========================

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

10.0.2(3y ago)028MITPHPPHP &gt;=7.2 || ^8.0

Since Apr 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/giahojnost/LumenSwagger)[ Packagist](https://packagist.org/packages/giahojnost/lumen-swagger)[ RSS](/packages/giahojnost-lumen-swagger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/9996cb8f73f9d89ef45de5c3dcdb1a7a0262a9018f6c01cf289895aede75d17c/68747470733a2f2f706f7365722e707567782e6f72672f676961686f6a6e6f73742f6c756d656e2d737761676765722f646f776e6c6f6164732e737667)](https://packagist.org/packages/giahojnost/lumen-swagger)

LumenSwagger
============

[](#lumenswagger)

Swagger 2.0-3.0 for Lumen

This package is a wrapper of [Swagger-php](https://github.com/zircote/swagger-php) and [swagger-ui](https://github.com/swagger-api/swagger-ui) adapted to work with Lumen.

Retouched based on [DarkaOnLine/LumenSwagger](https://github.com/DarkaOnLine/LumenSwagger)

LumenSwagger UIOpenAPI Spec compatibilityL5-Swagger10.032.0, 3.0`composer require "giahojnost/lumen-swagger:10.*"`- Open your `bootstrap/app.php` file and:

uncomment this line (around line 26) in `Create The Application` section:

```
     $app->withFacades();
```

add this line before `Register Container Bindings` section:

```
     $app->configure('lumen-swagger');
```

add this line in `Register Service Providers` section:

```
    $app->register(\LumenSwagger\ServiceProvider::class);
```

- Run `php artisan lumen-swagger:publish-config` to publish configs (`config/lumen-swagger.php`)
- Make configuration changes if needed
- Run `php artisan lumen-swagger:publish` to publish everything

Using [OpenApi 3.0 Specification](https://github.com/OAI/OpenAPI-Specification)
===============================================================================

[](#using-openapi-30-specification)

If you would like to use latest OpenApi specifications (originally known as the Swagger Specification) in your project you should:

- Explicitly require `swagger-php` version 3.\* in your projects composer by running:

```
composer require 'zircote/swagger-php:4.*'
```

- Set environment variable `SWAGGER_VERSION` to **3.0** in your `.env` file:

```
SWAGGER_VERSION=3.0

```

or in your `config/l5-swagger.php`:

```
'swagger_version' => env('SWAGGER_VERSION', '3.0'),
```

- Use examples provided here:

Configuration
=============

[](#configuration)

- Run `php artisan lumen-swagger:publish-config` to publish configs (`config/lumen-swagger.php`)
- Run `php artisan lumen-swagger:publish-views` to publish views (`resources/views/vendor/lumen-swagger`)
- Run `php artisan lumen-swagger:publish` to publish everything
- Run `php artisan lumen-swagger:generate` to generate docs

Swagger-php
===========

[](#swagger-php)

The actual Swagger spec is beyond the scope of this package. All LumenSwagger does is package up swagger-php and swagger-ui in a Laravel-friendly fashion, and tries to make it easy to serve. For info on how to use swagger-php [look here](http://zircote.com/swagger-php/). For good examples of swagger-php in action [look here](https://github.com/zircote/swagger-php/tree/master/Examples/petstore.swagger.io).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/914e26b417db1ebc121668143451cd7ed40c47988c87491315cf6ad9d0c92fa7?d=identicon)[giahojnost](/maintainers/giahojnost)

---

Top Contributors

[![chelryong](https://avatars.githubusercontent.com/u/219942323?v=4)](https://github.com/chelryong "chelryong (5 commits)")

---

Tags

apilaraveldocumentationuispecificationswaggeropenapilumen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/giahojnost-lumen-swagger/health.svg)

```
[![Health](https://phpackages.com/badges/giahojnost-lumen-swagger/health.svg)](https://phpackages.com/packages/giahojnost-lumen-swagger)
```

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3372.3M3](/packages/darkaonline-swagger-lume)[swagger-api/swagger-ui

 Swagger UI is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.

28.8k45.4M99](/packages/swagger-api-swagger-ui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
