PHPackages                             becker/traefik-http-provider - 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. becker/traefik-http-provider

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

becker/traefik-http-provider
============================

A library to generate a HTTP Provider for Traefik

0.3.3(2y ago)011MITPHP

Since Sep 22Pushed 2y agoCompare

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

READMEChangelogDependencies (1)Versions (2)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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

961d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e58200ec3834174d70c29b27ea6f27b21ecad7955837673103eaf7f561c16c?d=identicon)[becker](/maintainers/becker)

---

Top Contributors

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

---

Tags

httpphpconfigtraefik

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/becker-traefik-http-provider/health.svg)

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

###  Alternatives

[stormbyte/traefik-http-config

A library to generate a Http Provider for Traefik

129.3k](/packages/stormbyte-traefik-http-config)[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)
