PHPackages                             haotx/swagger-lume - 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. haotx/swagger-lume

ActiveLibrary[API Development](/categories/api)

haotx/swagger-lume
==================

Swagger integration to Lumen 5

1.0.0(10y ago)0402[1 PRs](https://github.com/tranxuanhao2001/SwaggerLume/pulls)MITPHPPHP &gt;=5.5.9

Since May 20Pushed 9y ago3 watchersCompare

[ Source](https://github.com/tranxuanhao2001/SwaggerLume)[ Packagist](https://packagist.org/packages/haotx/swagger-lume)[ RSS](/packages/haotx-swagger-lume/feed)WikiDiscussions master Synced 3w ago

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

[![Build Status](https://camo.githubusercontent.com/4a082ee8649e5f4e994b2fdb66c8b336e7673be6c22ff295d76745bfe4c2052e/68747470733a2f2f7472617669732d63692e6f72672f4461726b614f6e4c696e652f537761676765724c756d652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DarkaOnLine/SwaggerLume)[![Test Coverage](https://camo.githubusercontent.com/ebaf4043a5debf18a3440e782331bc51ca7e1abba56322a8b571c2da4cb714dd/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3536613730643562613965653638303037303031306130352f6261646765732f34306462633636656666633431373733343331332f636f7665726167652e737667)](https://codeclimate.com/repos/56a70d5ba9ee680070010a05/coverage)[![Code Climate](https://camo.githubusercontent.com/e169ef88f3e3ae334d33ad5e920ab0332f102177ae8eaf15240ac9ef6949f212/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3536613730643562613965653638303037303031306130352f6261646765732f34306462633636656666633431373733343331332f6770612e737667)](https://codeclimate.com/repos/56a70d5ba9ee680070010a05/feed)[![StyleCI](https://camo.githubusercontent.com/7205c4c283d3852a4e8514b7ca299f62e67f5e140d3b0b0ebd6f6ebe4bf3636b/68747470733a2f2f7374796c6563692e696f2f7265706f732f35303131333232392f736869656c64)](https://styleci.io/repos/50113229)[![Total Downloads](https://camo.githubusercontent.com/73ff49c1d014381c504534f0a18493e90bf9d758e8a0562a508f34b59df73090/68747470733a2f2f706f7365722e707567782e6f72672f4461726b614f6e4c696e652f737761676765722d6c756d652f646f776e6c6f6164732e737667)](https://packagist.org/packages/DarkaOnLine/swagger-lume)

SwaggerLume
===========

[](#swaggerlume)

Swagger 2.0 for Lumen 5

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 5.

Original source
===============

[](#original-source)

Installation
============

[](#installation)

```
    composer require "haotx/swagger-lume 1.*"
```

- 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('swagger-lume');
```

add this line in `Register Service Providers` section:

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

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

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

[](#configuration)

- Run `swagger-lume:publish-config` to publish configs (`config/swagger-lume.php`)
- Run `swagger-lume:publish-assets` to publish swagger-ui to your public folder (`public/vendor/swagger-lume`)
- Run `swagger-lume:publish-views` to publish views (`resources/views/vendor/swagger-lume`)
- Run `swagger-lume:publish` to publish everything
- Run `swagger-lume:generate` to generate docs

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

[](#swagger-php)

The actual Swagger spec is beyond the scope of this package. All SwaggerLume 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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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

3693d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12896369?v=4)[tranxuanhao2001](/maintainers/tranxuanhao2001)[@tranxuanhao2001](https://github.com/tranxuanhao2001)

---

Top Contributors

[![DarkaOnLine](https://avatars.githubusercontent.com/u/1171698?v=4)](https://github.com/DarkaOnLine "DarkaOnLine (54 commits)")[![nathanejohnson](https://avatars.githubusercontent.com/u/1360240?v=4)](https://github.com/nathanejohnson "nathanejohnson (2 commits)")[![tranxuanhao2001](https://avatars.githubusercontent.com/u/12896369?v=4)](https://github.com/tranxuanhao2001 "tranxuanhao2001 (1 commits)")

---

Tags

laravelswaggerlumen

### Embed Badge

![Health badge](/badges/haotx-swagger-lume/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

3322.4M3](/packages/darkaonline-swagger-lume)

PHPackages © 2026

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