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

ActiveLibrary[API Development](/categories/api)

kbrabrand/silex-swagger-ui
==========================

A silex service provider that integrates the Swagger UI documentation browser into silex

1.0.0(11y ago)613.4k10[1 issues](https://github.com/kbrabrand/silex-swagger-ui/issues)[1 PRs](https://github.com/kbrabrand/silex-swagger-ui/pulls)MITJavaScriptPHP &gt;=5.4.0

Since Jul 1Pushed 10y ago2 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Silex SwaggerUI service provider
================================

[](#silex-swaggerui-service-provider)

A silex service provider that integrates the Swagger UI documentation browser into silex. Does not depend on anything besides Silex.

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

[](#installation)

Add `"kbrabrand/silex-swagger-ui": "dev-master"` to you composer.json file and run `composer install` inside the root of your project.

In addition to this you will need to register the service in your Silex app like this;

```
// Set up swagger ui service for viewing the swagger docs
$app->register(new SwaggerUI\Silex\Provider\SwaggerUIServiceProvider(), array(
    'swaggerui.path'       => '/v1/swagger',
    'swaggerui.apiDocPath' => '/v1/docs'
));
```

This will result in the SwaggerUI interface being available at */v1/swagger* under you Silex application root. The `swaggerui.apiDovPath` config option specifies the URL/path to the swagger doc files.

Known issues
------------

[](#known-issues)

The Swagger UI is pretty slow right now due to the fact that static resources are served *through* a Silex controller and no cache is in place (yet). I'll try to fix this soon.

License
-------

[](#license)

Copyright (c) 2014, Kristoffer Brabrand

Licensed under the MIT License

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 72% 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 ~50 days

Total

4

Last Release

4183d ago

Major Versions

0.1.2 → 1.0.02014-11-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dc712d46ad616603b6d7c1be04809a6789935c6cf7c99e9f1e891ac2045f7a5?d=identicon)[kbrabrand](/maintainers/kbrabrand)

---

Top Contributors

[![kbrabrand](https://avatars.githubusercontent.com/u/2884292?v=4)](https://github.com/kbrabrand "kbrabrand (18 commits)")[![logocomune](https://avatars.githubusercontent.com/u/1417145?v=4)](https://github.com/logocomune "logocomune (5 commits)")[![gunnarlium](https://avatars.githubusercontent.com/u/207556?v=4)](https://github.com/gunnarlium "gunnarlium (2 commits)")

---

Tags

swaggerserviceprovidersilexswagger-ui

### Embed Badge

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

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

###  Alternatives

[wotz/laravel-swagger-ui

Add Swagger UI to a Laravel application.

277321.8k](/packages/wotz-laravel-swagger-ui)[jdesrosiers/silex-cors-provider

A silex service provider that adds CORS services to silex

83892.3k10](/packages/jdesrosiers-silex-cors-provider)[harmbandstra/swagger-ui-bundle

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

42867.3k](/packages/harmbandstra-swagger-ui-bundle)[ddesrosiers/silex-annotation-provider

A silex service provider that allows the use of annotations in ServiceControllers.

25246.7k3](/packages/ddesrosiers-silex-annotation-provider)[latrell/swagger

Swagger for Laravel 5

4962.8k](/packages/latrell-swagger)[jdesrosiers/silex-jms-serializer-provider

A silex service provider that integrates jms/serializer into silex

11126.3k2](/packages/jdesrosiers-silex-jms-serializer-provider)

PHPackages © 2026

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