PHPackages                             lithiumdev/l5-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. lithiumdev/l5-swagger

AbandonedArchivedLibrary[API Development](/categories/api)

lithiumdev/l5-swagger
=====================

Swagger integration for Laravel 5.2+

1.0.0(10y ago)09.5kMITJavaScriptPHP &gt;=5.5.9

Since Mar 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lhdev/L5-Swagger)[ Packagist](https://packagist.org/packages/lithiumdev/l5-swagger)[ RSS](/packages/lithiumdev-l5-swagger/feed)WikiDiscussions master Synced 1mo ago

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

[![](https://camo.githubusercontent.com/0c9d6c071c06ea29828dd4f0f7c080feedaffbfc2a95f47f183a565778592589/68747470733a2f2f6c69746869756d686f7374696e672e636f6d2f696d616765732f6c6f676f5f6e65775f626c61636b2e706e67)](https://camo.githubusercontent.com/0c9d6c071c06ea29828dd4f0f7c080feedaffbfc2a95f47f183a565778592589/68747470733a2f2f6c69746869756d686f7374696e672e636f6d2f696d616765732f6c6f676f5f6e65775f626c61636b2e706e67)

L5-Swagger
----------

[](#l5-swagger)

**from Lithium Hosting**
We're always open to pull requests, feel free to make this your own or help us make it better.

### Copyright

[](#copyright)

(c) Lithium Hosting, llc

### License

[](#license)

This library is licensed under the MIT license; you can find a full copy of the license itself in the file /LICENSE
Inspired by [Jordan Lapp's Swaggervel](https://github.com/slampenny/Swaggervel)!

### Requirements

[](#requirements)

- PHP 5.5.9 or newer
- Laravel 5.2

### Description

[](#description)

This package combines [Swagger-php](https://github.com/zircote/swagger-php) and [swagger-ui](https://github.com/swagger-api/swagger-ui) into one Laravel-friendly package.
When you run your app in debug mode, L5-Swagger will scan your app folder (or any folder that is set under the "app-dir" variable in the packages config), generate swagger json files and deposit them to the doc-dir folder (default is `/docs`). Files are then served by swagger-ui under the api-docs directory.

### Installation

[](#installation)

Installation is easy, just add `"lithiumdev/l5-swagger": "~1.0"` to your composer.json and then run composer update
You can also just type `composer require lithiumdev/l5-swagger:~1.0`.

After the composer install finishes, register the service provider and publish the assets:

- Add `LithiumDev\Swagger\SwaggerServiceProvider::class,` to your providers array in `app/config/app.php` above your route provider, to avoid any catch-all routes
- Run `php artisan vendor:publish --provider="LithiumDev\Swagger\SwaggerServiceProvider"` to publish required resources.

### Usage

[](#usage)

Two routes are available, one serves the swagger JSON file and the other displays Swagger-UI

- [www.example.com/docs](http://www.example.com/docs) - This is the swagger JSON route
- [www.example.com/api/docs](http://www.example.com/api/docs) - This route serves up the Swagger-UI

You can manaully generate the swagger json file by running the following command:
`./vendor/bin/swagger app/ -o storage/docs/api-docs.json`

More to come...

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3715d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20a605a84d2fd001ad68750f93812201d3fe0c8dc056e657580fae0562a16f80?d=identicon)[tsiedsma](/maintainers/tsiedsma)

---

Top Contributors

[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (1 commits)")

---

Tags

laravelswaggerapi documenter

### Embed Badge

![Health badge](/badges/lithiumdev-l5-swagger/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M111](/packages/darkaonline-l5-swagger)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)[infyomlabs/swagger-generator

Swagger Generator for InfyOm Laravel Generator

1151.1M5](/packages/infyomlabs-swagger-generator)[latrell/swagger

Swagger for Laravel 5

4962.8k](/packages/latrell-swagger)

PHPackages © 2026

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