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

ActiveLibrary[API Development](/categories/api)

damian-nz/l5-swagger
====================

Swagger integration to Laravel 5

4.0.0(8y ago)34.2k1MITPHPPHP ^7.0

Since May 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/damian-nz/L5-Swagger)[ Packagist](https://packagist.org/packages/damian-nz/l5-swagger)[ RSS](/packages/damian-nz-l5-swagger/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (7)Versions (15)Used By (0)

L5 Swagger
==========

[](#l5-swagger)

Swagger 2.0 for Laravel &gt;=5.1

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

### Full credit to [DarkaOnLine/L5-Swagger](https://github.com/DarkaOnLine/L5-Swagger) for creating this package originally.

[](#full-credit-to-darkaonlinel5-swagger-for-creating-this-package-originally)

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

[](#installation)

```
    composer require "damian-nz/l5-swagger:~4.0"
```

Thanks to package auto discovery in Laravel 5.5, that's it!

Migrate from 3.0 to 4.0
=======================

[](#migrate-from-30-to-40)

- Remove `config/l5-swagger.php` file (make a copy if needed)
- Remove `public/vendor/l5-swagger` directory
- Remove `resources/views/vendor/l5-swagger` directory
- Run `l5-swagger:publish` to publish new swagger-ui view and configuration
- Edit the newly published `config/l5-swagger.php` file

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

[](#configuration)

- Run `l5-swagger:publish` to publish everything
- Run `l5-swagger:publish-config` to publish configs (`config/l5-swagger.php`)
- Run `l5-swagger:publish-assets` to publish swagger-ui to your public folder (`public/vendor/l5-swagger`)
- Run `l5-swagger:publish-views` to publish views (`resources/views/vendor/l5-swagger`) - only for versions &lt;= 4.0
- Run `l5-swagger:generate` to generate docs or set `generate_always` param to `true` in your config or .env file

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

[](#swagger-php)

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

Support on Beerpay
------------------

[](#support-on-beerpay)

Help me out the original package creator buy a round of 🍻!

[![Beerpay](https://camo.githubusercontent.com/05a943f347e2ae7cce58e2ab4a63b30f8d87da0c0371052ec4aa4b4db082e9a3/68747470733a2f2f626565727061792e696f2f4461726b614f6e4c696e652f4c352d537761676765722f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/DarkaOnLine/L5-Swagger) [![Beerpay](https://camo.githubusercontent.com/c0b3871e4a1b5c82e24dd3ee98e88b9cd6e3075a915bd524caede9c3391e9488/68747470733a2f2f626565727061792e696f2f4461726b614f6e4c696e652f4c352d537761676765722f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/DarkaOnLine/L5-Swagger?focus=wish)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75.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

Every ~89 days

Recently: every ~95 days

Total

11

Last Release

3184d ago

Major Versions

1.0.x-dev → 2.0.x-dev2015-09-29

2.0.x-dev → 3.1.42016-07-20

3.3.3 → 4.0.02017-10-11

PHP version history (3 changes)1.0.x-devPHP &gt;=5.4.0

3.1.4PHP &gt;=5.5.9

4.0.0PHP ^7.0

### Community

Maintainers

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

---

Top Contributors

[![DarkaOnLine](https://avatars.githubusercontent.com/u/1171698?v=4)](https://github.com/DarkaOnLine "DarkaOnLine (109 commits)")[![damian-nz](https://avatars.githubusercontent.com/u/7383198?v=4)](https://github.com/damian-nz "damian-nz (16 commits)")[![verwilst](https://avatars.githubusercontent.com/u/2114993?v=4)](https://github.com/verwilst "verwilst (4 commits)")[![bbs-smuller](https://avatars.githubusercontent.com/u/18079210?v=4)](https://github.com/bbs-smuller "bbs-smuller (2 commits)")[![fh-jashmore](https://avatars.githubusercontent.com/u/26600475?v=4)](https://github.com/fh-jashmore "fh-jashmore (2 commits)")[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (2 commits)")[![joshstrange](https://avatars.githubusercontent.com/u/462796?v=4)](https://github.com/joshstrange "joshstrange (1 commits)")[![josiasmontag](https://avatars.githubusercontent.com/u/1945577?v=4)](https://github.com/josiasmontag "josiasmontag (1 commits)")[![cyberhicham](https://avatars.githubusercontent.com/u/10002527?v=4)](https://github.com/cyberhicham "cyberhicham (1 commits)")[![markokeeffe](https://avatars.githubusercontent.com/u/1211393?v=4)](https://github.com/markokeeffe "markokeeffe (1 commits)")[![matriphe](https://avatars.githubusercontent.com/u/277262?v=4)](https://github.com/matriphe "matriphe (1 commits)")[![stefanullrich](https://avatars.githubusercontent.com/u/3226657?v=4)](https://github.com/stefanullrich "stefanullrich (1 commits)")[![tantam](https://avatars.githubusercontent.com/u/3469994?v=4)](https://github.com/tantam "tantam (1 commits)")[![tomcastleman](https://avatars.githubusercontent.com/u/1532660?v=4)](https://github.com/tomcastleman "tomcastleman (1 commits)")[![gert-fresh](https://avatars.githubusercontent.com/u/1530784?v=4)](https://github.com/gert-fresh "gert-fresh (1 commits)")

---

Tags

apilaravelswagger

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

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

PHPackages © 2026

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