PHPackages                             stormbyte/traefik-http-config - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. stormbyte/traefik-http-config

ActiveLibrary[HTTP &amp; Networking](/categories/http)

stormbyte/traefik-http-config
=============================

A library to generate a Http Provider for Traefik

v0.2.2(5y ago)129.3k↑75%3MITPHP

Since Nov 21Pushed 5y ago3 watchersCompare

[ Source](https://github.com/stormbyte/traefik-http-provider)[ Packagist](https://packagist.org/packages/stormbyte/traefik-http-config)[ Docs](http://stormbyte.nl)[ RSS](/packages/stormbyte-traefik-http-config/feed)WikiDiscussions master Synced 1mo ago

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

Http Providers for Traefik
==========================

[](#http-providers-for-traefik)

This package is meant to provide a easy to use [HTTP provider for Traefik](https://doc.traefik.io/traefik/providers/http/).

The http provider can be set up to update in increments.

In the `docker-compose` folder there is an example setup of a self contained setup with a interval of 5sec updates. As long as the config is valid json it should update every 5sec.

With this package the config will output a valid json for traefik to read.

Http
----

[](#http)

### Service

[](#service)

Add a Http Service to the config `$config->setHttpService( , );`

The return is the HttpService class, `\Traefik\Http\Service`

With `addServer(  )` it's possible to add more backend url's

### Router

[](#router)

Add a Http Router to the config `$config->setHttpRouter( , ,  )`

Add the entryPoints with an array `->setEntryPoints( [  ] )`

Add middlewares with an array `->setMiddlewares( [  ] )`

Add tls to enable SSL `->setTls(true)`

### Middleware

[](#middleware)

Add a Http Middleware the the config `$config->addMiddleWare( ,  )`

Possible classes

- `\Traefik\Middleware\Config\AddPrefix`
- `\Traefik\Middleware\Config\BasicAuth`
- `\Traefik\Middleware\Config\Buffering`
- `\Traefik\Middleware\Config\Chain`
- `\Traefik\Middleware\Config\CircuitBreaker`
- `\Traefik\Middleware\Config\Compress`
- `\Traefik\Middleware\Config\DigestAuth`
- `\Traefik\Middleware\Config\ErrorPage`
- `\Traefik\Middleware\Config\ForwardAuth`
- `\Traefik\Middleware\Config\Headers`
- `\Traefik\Middleware\Config\InFlightReq`
- `\Traefik\Middleware\Config\IpWhiteList`
- `\Traefik\Middleware\Config\PassTLSClientCert`
- `\Traefik\Middleware\Config\RateLimit`
- `\Traefik\Middleware\Config\RedirectRegex`
- `\Traefik\Middleware\Config\RedirectScheme`
- `\Traefik\Middleware\Config\ReplacePath`
- `\Traefik\Middleware\Config\ReplacePathRegex`
- `\Traefik\Middleware\Config\Retry`
- `\Traefik\Middleware\Config\StripPrefix`
- `\Traefik\Middleware\Config\StripPrefixRegex`

Tcp
---

[](#tcp)

### Service

[](#service-1)

`$config->setTcpService( , )`

### Router

[](#router-1)

`$config->setTcpRouter( , ,  )``->setEntryPoints( [  ] )``->setTls(true)`

Udp
---

[](#udp)

### Service

[](#service-2)

`$config->setUpdService( , )`

### Router

[](#router-2)

`$config->setUdpRouter( , ,  )``->setEntryPoints( [  ] )``->setTls(true)`

Return config
-------------

[](#return-config)

`echo $config->getJsonConfig()`

TODO
----

[](#todo)

Support for:

- Root TLS settings
- Full http router TLS settings
- Full tcp router TLS settings
- Weighted service
- Mirroring service
- Service health check
- Service sticky sessions

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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 ~15 days

Total

5

Last Release

1944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/533a331c72acbf24c7987565e38cf1814494b83b5876d887c5fa9ef17ade7f5e?d=identicon)[stormbyte](/maintainers/stormbyte)

---

Tags

httpphpconfigtraefik

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stormbyte-traefik-http-config/health.svg)

```
[![Health](https://phpackages.com/badges/stormbyte-traefik-http-config/health.svg)](https://phpackages.com/packages/stormbyte-traefik-http-config)
```

###  Alternatives

[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76410.4k1](/packages/hannesvdvreken-guzzle-debugbar)[swoole-bundle/swoole-bundle

Open/Swoole Symfony Bundle

6650.4k](/packages/swoole-bundle-swoole-bundle)

PHPackages © 2026

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