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

ActiveLibrary[API Development](/categories/api)

mozakar/l5-swagger
==================

OpenApi or Swagger integration to Laravel

1.0.0(7mo ago)05MITPHPPHP ^8.2

Since Sep 18Pushed 7mo agoCompare

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

READMEChangelog (1)Dependencies (10)Versions (3)Used By (0)

[![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)[![Code Climate](https://camo.githubusercontent.com/ea5a6c02db371c58cfec65aaba48c9bbc36b6ff8c7af3eafc18ef7af1ec5ce62/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4461726b614f6e4c696e652f4c352d537761676765722f6261646765732f6770612e737667)](https://codeclimate.com/github/DarkaOnLine/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

35

—

LowBetter than 79% of packages

Maintenance66

Regular maintenance activity

Popularity4

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a5e899b5dd5f4c5317d7c26a7d03feb3eabeee8c9d0c33a6cc3f965fa787eee?d=identicon)[Mozakar](/maintainers/Mozakar)

---

Top Contributors

[![DarkaOnLine](https://avatars.githubusercontent.com/u/1171698?v=4)](https://github.com/DarkaOnLine "DarkaOnLine (248 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)")[![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)")[![bbs-smuller](https://avatars.githubusercontent.com/u/18079210?v=4)](https://github.com/bbs-smuller "bbs-smuller (2 commits)")[![LiamBull](https://avatars.githubusercontent.com/u/17298523?v=4)](https://github.com/LiamBull "LiamBull (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (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)")[![ymhuang0808](https://avatars.githubusercontent.com/u/2720857?v=4)](https://github.com/ymhuang0808 "ymhuang0808 (2 commits)")[![Mozakar](https://avatars.githubusercontent.com/u/24956283?v=4)](https://github.com/Mozakar "Mozakar (2 commits)")[![ashish-khokhar](https://avatars.githubusercontent.com/u/761541?v=4)](https://github.com/ashish-khokhar "ashish-khokhar (2 commits)")[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (2 commits)")[![mfrancois](https://avatars.githubusercontent.com/u/654224?v=4)](https://github.com/mfrancois "mfrancois (1 commits)")[![hackel](https://avatars.githubusercontent.com/u/583677?v=4)](https://github.com/hackel "hackel (1 commits)")[![kossa](https://avatars.githubusercontent.com/u/1175584?v=4)](https://github.com/kossa "kossa (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)")

---

Tags

apilaraveldocumentationuispecificationswaggeropenapi

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M111](/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.7k45.4M99](/packages/swagger-api-swagger-ui)

PHPackages © 2026

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