Download the PHP package rstgroup/zf-external-config-consul-provider without Composer
On this page you can find all versions of the php package rstgroup/zf-external-config-consul-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rstgroup/zf-external-config-consul-provider
More information about rstgroup/zf-external-config-consul-provider
Files in rstgroup/zf-external-config-consul-provider
Download rstgroup/zf-external-config-consul-provider
More information about rstgroup/zf-external-config-consul-provider
Files in rstgroup/zf-external-config-consul-provider
Vendor rstgroup
Package zf-external-config-consul-provider
Short Description Consul provider for rstgroup/zf-external-config-module
License MIT
Package zf-external-config-consul-provider
Short Description Consul provider for rstgroup/zf-external-config-module
License MIT
Please rate this library. Is it a good library?
Informations about the package zf-external-config-consul-provider
ZF External Config - Consul Provider
This library contains provider that can fetch configuration from Consul Key/Value Storage.
Installation
Require module with Composer:
Then don't forget to enable provider and define factory in the zf-config-module
's
section of application's configuration:
Configuration
Example configuration of provider might look just like this:
The provider's configuration should be placed under rsr_group.external_config.consul
key.
There are two sections:
prefix
key, which determines the base path in Consul's KV Storage. How it exactly works you can read inrstgroup/php-consul-kv-array-getter
's documentation.
If you don't provideprefix
, provider will return all keys returned by Consul KV API.http_client
key, which contains options passed toGuzzleHttp\Client
instance. The key that should interest you isbase_uri
which determines the base location of Consul's API. By default it's value ishttp://127.0.0.1:8500
.
More information about possible options are described in Guzzle Docs and in Guzzle's repository.
All versions of zf-external-config-consul-provider with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 5.6
rstgroup/zf-external-config-module Version ^1
rstgroup/php-consul-kv-array-getter Version ^1
rstgroup/zf-external-config-module Version ^1
rstgroup/php-consul-kv-array-getter Version ^1
The package rstgroup/zf-external-config-consul-provider contains the following files
Loading the files please wait ....