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

ActiveLibrary[API Development](/categories/api)

darkaonline/l5-swagger
======================

OpenApi or Swagger integration to Laravel

11.0.0(2mo ago)2.9k34.0M—1.6%414[16 issues](https://github.com/DarkaOnLine/L5-Swagger/issues)20MITPHPPHP ^8.2CI passing

Since Mar 23Pushed 1mo ago36 watchersCompare

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

READMEChangelog (10)Dependencies (18)Versions (137)Used By (20)

[![Total Downloads](https://camo.githubusercontent.com/926092d8dc14b9e5982b32eda06b46b117585e1f6f62238c6e1345d591cd3180/68747470733a2f2f706f7365722e707567782e6f72672f4461726b614f6e4c696e652f4c352d537761676765722f646f776e6c6f6164732e737667)](https://packagist.org/packages/DarkaOnLine/L5-Swagger)[![Build Status](https://github.com/DarkaOnLine/L5-Swagger/actions/workflows/test-config.yml/badge.svg?branch=master)](https://github.com/DarkaOnLine/L5-Swagger/actions/workflows/test-config.yml/badge.svg?branch=master)[![Coverage Status](https://camo.githubusercontent.com/ed45802f411b41bd90991501de36a2b310c59f08f2b1d2ebcafaa6fa4d44ef2e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4461726b614f6e4c696e652f4c352d537761676765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DarkaOnLine/L5-Swagger?branch=master)[![Maintainability](https://camo.githubusercontent.com/a620b5e7d310fcabc15e9f29cf841268189b707471d6b7afaa7abafbc95b5744/68747470733a2f2f716c74792e73682f67682f4461726b614f6e4c696e652f70726f6a656374732f4c352d537761676765722f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/DarkaOnLine/projects/L5-Swagger)[![StyleCI](https://camo.githubusercontent.com/a81329810747630b9a568f6f7d849b6ee31bc755efef5420851ebf444d0b42ca/68747470733a2f2f7374796c6563692e696f2f7265706f732f33323331353631392f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://styleci.io/repos/32315619)[![GuitHub Sponsor](https://camo.githubusercontent.com/fcd021676c7550d3320eb4c519aa90db04e4cbec36ac846ebe279ceab4d4861d/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f722532304c352d53776167676572266d6573736167653d254532253944254134266c6f676f3d476974487562)](https://github.com/sponsors/DarkaOnLine)

L5 Swagger - OpenApi or Swagger Specification for your Laravel project made easy.
=================================================================================

[](#l5-swagger---openapi-or-swagger-specification-for-your-laravel-project-made-easy)

Please visit [L5 Swagger Wiki](https://github.com/DarkaOnLine/L5-Swagger/wiki) for more information:
----------------------------------------------------------------------------------------------------

[](#please-visit-l5-swagger-wiki-for-more-information)

- [Installation &amp; Configuration](https://github.com/DarkaOnLine/L5-Swagger/wiki/Installation-&-Configuration)
- [Change Log](https://github.com/DarkaOnLine/L5-Swagger/wiki/Change-Log)
- [Migration Guides](https://github.com/DarkaOnLine/L5-Swagger/wiki/Migration-Guides)
- [Using Swagger UI with Passport](https://github.com/DarkaOnLine/L5-Swagger/wiki/Using-Swagger-UI-with-Passport)
- [Tips](https://github.com/DarkaOnLine/L5-Swagger/wiki/Tips)

Support
-------

[](#support)

[![GuitHub Sponsor](https://camo.githubusercontent.com/fcd021676c7550d3320eb4c519aa90db04e4cbec36ac846ebe279ceab4d4861d/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f722532304c352d53776167676572266d6573736167653d254532253944254134266c6f676f3d476974487562)](https://github.com/sponsors/DarkaOnLine)

### Disclaimer

[](#disclaimer)

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. 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](https://zircote.github.io/swagger-php/). For good examples of swagger-php in action [look here](https://github.com/zircote/swagger-php/tree/master/docs/examples/specs/petstore).

###  Health Score

82

—

ExcellentBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community52

Growing community involvement

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 83% 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 ~36 days

Recently: every ~93 days

Total

112

Last Release

74d ago

Major Versions

5.7.3 → 8.0.12020-08-21

6.0.6 → 8.0.52021-05-07

8.6.5 → 9.0.02025-02-24

9.0.1 → 10.0.02026-01-05

10.1.0 → 11.0.02026-03-06

PHP version history (9 changes)v0.1PHP &gt;=5.4.0

3.0PHP &gt;=5.5.9

4.0.x-devPHP &gt;=5.6.4

5.0PHP ^7.0

5.6.0PHP &gt;=7.1.3

5.5.7PHP ~7.0

6.0PHP ^7.2

8.0.3PHP ^7.2 || ^8.0

9.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/58287c8fd055eff7c71434229621ff0269373958b8647687e01c4b70ce674ce5?d=identicon)[DarkaOnLine](/maintainers/DarkaOnLine)

---

Top Contributors

[![DarkaOnLine](https://avatars.githubusercontent.com/u/1171698?v=4)](https://github.com/DarkaOnLine "DarkaOnLine (253 commits)")[![gruz](https://avatars.githubusercontent.com/u/422942?v=4)](https://github.com/gruz "gruz (5 commits)")[![collegeman](https://avatars.githubusercontent.com/u/120316?v=4)](https://github.com/collegeman "collegeman (4 commits)")[![verwilst](https://avatars.githubusercontent.com/u/2114993?v=4)](https://github.com/verwilst "verwilst (4 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![LiamBull](https://avatars.githubusercontent.com/u/17298523?v=4)](https://github.com/LiamBull "LiamBull (2 commits)")[![fh-jashmore](https://avatars.githubusercontent.com/u/26600475?v=4)](https://github.com/fh-jashmore "fh-jashmore (2 commits)")[![firdaushatta](https://avatars.githubusercontent.com/u/6598384?v=4)](https://github.com/firdaushatta "firdaushatta (2 commits)")[![ashish-khokhar](https://avatars.githubusercontent.com/u/761541?v=4)](https://github.com/ashish-khokhar "ashish-khokhar (2 commits)")[![ymhuang0808](https://avatars.githubusercontent.com/u/2720857?v=4)](https://github.com/ymhuang0808 "ymhuang0808 (2 commits)")[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (2 commits)")[![bbs-smuller](https://avatars.githubusercontent.com/u/18079210?v=4)](https://github.com/bbs-smuller "bbs-smuller (2 commits)")[![PouriaSeyfi](https://avatars.githubusercontent.com/u/21053631?v=4)](https://github.com/PouriaSeyfi "PouriaSeyfi (2 commits)")[![rodrigowbazevedo](https://avatars.githubusercontent.com/u/6214250?v=4)](https://github.com/rodrigowbazevedo "rodrigowbazevedo (2 commits)")[![sserbin](https://avatars.githubusercontent.com/u/1689792?v=4)](https://github.com/sserbin "sserbin (1 commits)")[![stefanullrich](https://avatars.githubusercontent.com/u/3226657?v=4)](https://github.com/stefanullrich "stefanullrich (1 commits)")[![TheDoctor0](https://avatars.githubusercontent.com/u/16612504?v=4)](https://github.com/TheDoctor0 "TheDoctor0 (1 commits)")[![vaawebdev](https://avatars.githubusercontent.com/u/47596772?v=4)](https://github.com/vaawebdev "vaawebdev (1 commits)")[![matriphe](https://avatars.githubusercontent.com/u/277262?v=4)](https://github.com/matriphe "matriphe (1 commits)")[![aolives](https://avatars.githubusercontent.com/u/12727629?v=4)](https://github.com/aolives "aolives (1 commits)")

---

Tags

apidocumentationl5-swaggerlaravellaravel-5-packageopenapiopenapi-annotationsspecificationswaggerswagger-phpswagger-specificationswagger-uiuiapilaraveldocumentationuispecificationswaggeropenapi

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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)[darkaonline/swagger-lume

OpenApi or Swagger integration to Lumen

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

PHPackages © 2026

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