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

ActiveLibrary[API Development](/categories/api)

latrell/swagger
===============

Swagger for Laravel 5

1.0.2(8y ago)4962.8k↓33.3%19[2 issues](https://github.com/Latrell/Swagger/issues)[3 PRs](https://github.com/Latrell/Swagger/pulls)MITHTMLPHP &gt;=7.0.0

Since Jul 9Pushed 7y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (7)Versions (7)Used By (0)

Swagger
=======

[](#swagger)

For Laravel 4, please use the [0.3 branch](https://github.com/Latrell/Swagger/releases/tag/0.3)!

Swagger for Laravel 5

This package combines [swagger-php](https://github.com/zircote/swagger-php) and [swagger-ui](https://github.com/wordnik/swagger-ui) into one Laravel-friendly package.

When you run your app in debug mode, Swagger will scan your Laravel app folder, generate swagger json files and deposit them to the docs-dir folder (default is "docs"). Files are then served by swagger-ui under the api-docs director.

Installation
------------

[](#installation)

```
composer require latrell/swagger dev-master

```

Update your packages with `composer update` or install with `composer install`.

Usage
-----

[](#usage)

To use the Swagger Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the `providers` key in `config/app.php` and register the Swagger Service Provider.

```
    'providers' => [
        // ...
        'Latrell\Swagger\SwaggerServiceProvider',
    ]
```

Run `php artisan vendor:publish` to push swagger-ui to your public folder and publish the config file.

Config file `config/latrell-swagger.php` is the primary way you interact with Swagger.

Example
-------

[](#example)

- [Demo](http://petstore.swagger.wordnik.com)
- [Documentation](http://zircote.com/swagger-php)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~269 days

Recently: every ~336 days

Total

6

Last Release

2986d ago

Major Versions

0.3 → 1.0.02015-03-08

PHP version history (2 changes)0.1.3PHP &gt;=5.4.0

1.0.2PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9c19d0caf9fc48461484ad75722397c85c31e901e77122aab1a966e5c4987dd?d=identicon)[Latrell](/maintainers/Latrell)

---

Top Contributors

[![latrell](https://avatars.githubusercontent.com/u/6267962?v=4)](https://github.com/latrell "latrell (30 commits)")

---

Tags

laravelswaggerswagger-uilaravelswaggerlaravel 5l5Swagger-PHPswagger-ui

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[jlapp/swaggervel

A great way to integrate Swagger into Laravel

492931.6k2](/packages/jlapp-swaggervel)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)

PHPackages © 2026

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