PHPackages                             kbrabrand/zf2-swagger-ui - 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. kbrabrand/zf2-swagger-ui

ActiveLibrary[API Development](/categories/api)

kbrabrand/zf2-swagger-ui
========================

Swagger UI module for ZF2

1.0.0(12y ago)535.7k—6.3%5MITJavaScriptPHP &gt;=5.3.3

Since Mar 13Pushed 11y ago2 watchersCompare

[ Source](https://github.com/kbrabrand/zf2-swagger-ui)[ Packagist](https://packagist.org/packages/kbrabrand/zf2-swagger-ui)[ Docs](https://github.com/kbrabrand/zf2-swagger-ui)[ RSS](/packages/kbrabrand-zf2-swagger-ui/feed)WikiDiscussions master Synced today

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

Swagger UI for ZF2
==================

[](#swagger-ui-for-zf2)

ZF2 module wrapping the default Swagger UI interface in a ZF2 module.

\##Installation The recommended way of installing Swagger UI for ZF2 is by using composer. Add `"kbrabrand/zf2-swagger-ui" : "dev-master"` to the require part of your composer.json file and do a `composer update` in order to download the dependency and generate autoloads.

Then add the module to the modules array in your application.config.php by adding `"SwaggerUI"`.

And lastly you will need to make the asset folder publicly accessible. This can be done in several ways, but for simplicty you could add a symlink like this;

`cd [ZF-app-root]/public && ln -s ../vendor/kbrabrand/zf2-swagger-ui/public swagger-ui`

\##Configuration There is one configurable option for the module. If you want Swagger UI to look for Swagger JSON somewhere other than /api/docs under the root of your ZF2 app, you can copy the swagger-ui.global.php.dist to your config/autoloads folder and set the docs-endpoint option to wherever you like.

\##Usage After adding the module to your application config you can access Swagger UI by going to /api/swagger.

License
-------

[](#license)

### Swagger UI templates, images and JS files

[](#swagger-ui-templates-images-and-js-files)

Copyright 2011-2013 Wordnik, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

\###Everything else Copyright (c) Kristoffer Brabrand

Licensed under the MIT License

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

4496d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2884292?v=4)[Kristoffer Brabrand](/maintainers/kbrabrand)[@kbrabrand](https://github.com/kbrabrand)

---

Top Contributors

[![kbrabrand](https://avatars.githubusercontent.com/u/2884292?v=4)](https://github.com/kbrabrand "kbrabrand (9 commits)")[![andreasrs](https://avatars.githubusercontent.com/u/726573?v=4)](https://github.com/andreasrs "andreasrs (2 commits)")

---

Tags

swaggerzf2swagger-ui

### Embed Badge

![Health badge](/badges/kbrabrand-zf2-swagger-ui/health.svg)

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

###  Alternatives

[wotz/laravel-swagger-ui

Add Swagger UI to a Laravel application.

279417.8k](/packages/wotz-laravel-swagger-ui)[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

42888.4k](/packages/harmbandstra-swagger-ui-bundle)[latrell/swagger

Swagger for Laravel 5

4163.0k](/packages/latrell-swagger)[joy/voyager-api

This Laravel/Voyager module adds REST Api with swagger support to Voyager.

204.8k3](/packages/joy-voyager-api)

PHPackages © 2026

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