Download the PHP package friendsofhyperf/config-consul without Composer
On this page you can find all versions of the php package friendsofhyperf/config-consul. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download friendsofhyperf/config-consul
More information about friendsofhyperf/config-consul
Files in friendsofhyperf/config-consul
Download friendsofhyperf/config-consul
More information about friendsofhyperf/config-consul
Files in friendsofhyperf/config-consul
Vendor friendsofhyperf
Package config-consul
Short Description The consul config component for Hyperf.
License MIT
Package config-consul
Short Description The consul config component for Hyperf.
License MIT
Please rate this library. Is it a good library?
Informations about the package config-consul
Config Consul
中文说明
A Consul configuration center driver for Hyperf.
Installation
The package installs its Hyperf Config Center, Consul, codec, and stringable dependencies automatically.
Configuration
| Option | Description |
|---|---|
enable |
Enables Hyperf Config Center. |
driver |
Selects the consul driver configuration. |
drivers.consul.driver |
The driver class. Use ConsulDriver::class. |
drivers.consul.packer |
Unpacks each mapped value. Defaults to JsonPacker::class. |
drivers.consul.client |
Optional Consul client settings. Supports uri and token. |
drivers.consul.namespaces |
An array of Consul KV prefixes to fetch recursively. |
drivers.consul.mapping |
Maps normalized Consul keys to Hyperf configuration keys. Only mapped keys are applied. |
drivers.consul.interval |
Pull interval in seconds. Defaults to 5. |
If client is omitted or empty, the component reuses Hyperf's bound
Hyperf\Consul\KVInterface client. When client is configured, uri defaults to
http://127.0.0.1:8500, a non-empty token is sent as the X-Consul-Token header, and the
HTTP timeout is 2 seconds.
Behavior
- Every namespace is requested with Consul's recursive option. If namespaces return the same key, the value from the later namespace wins before mapping.
- Consul KV values are Base64-decoded, then passed to the configured packer. With
JsonPacker, stored values must contain valid JSON after Base64 decoding. - Consul keys are normalized to start with
/before lookup inmapping. - The package registers
FriendsOfHyperf\ConfigConsul\ClientInterfaceandFriendsOfHyperf\ConfigConsul\Consul\KVInterfacein the container.ConsulDriveris the Config Center driver entry point.
All versions of config-consul with dependencies
PHP Build Version
Package Version
Requires
hyperf/codec Version
~3.2.0
hyperf/config-center Version ~3.2.0
hyperf/consul Version ~3.2.0
hyperf/stringable Version ~3.2.0
hyperf/config-center Version ~3.2.0
hyperf/consul Version ~3.2.0
hyperf/stringable Version ~3.2.0
The package friendsofhyperf/config-consul contains the following files
Loading the files please wait ...