dcarbone/php-consul-api
PHP client for the Consul HTTP API. Built for Composer and modeled after HashiCorp’s Go client, with version compatibility guidance and flexible configuration (defaults from Consul env vars or custom config with Guzzle, address, scheme, datacenter, auth, tokens).
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v2.0.2...v3.0.0
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v2.0.2...v3.0.0-rc1
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v2.0.1...v2.0.2
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v2.0.0...v2.0.1
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.7...v2.0.0
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.6...v1.1.7
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.5...v1.1.6
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.4...v1.1.5
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.3...v1.1.4
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.2...v1.1.3
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.1...v1.1.2
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.1.0...v1.1.1
Full Changelog: https://github.com/dcarbone/php-consul-api/compare/v1.0.5...v1.1.0
This release includes the following:
guzzlehttp/psr7 from ~1 to ~2Addresses #22. I doubt this impacts very many / any users, but mutating responses in this way was a bad idea either way.
Addressing a few PHP 7.4 uninitialized class var issues.
Improved serialization and fixes to catalog package and tests.
This release is comprised of over a year of off-and-on work.
The primary highlights are:
\ArrayAccess, so you may still use either list() or [] to expand the response.json:"omitempty and json:"-" functionality on modelsConsul typeThere are almost assuredly bugs in this release. The usage tests I had before run, but they are not yet comprehensive. I will add more as I get time, and as always welcome input from people who'd like to chip in :)
Addresses #19
Fixing KVClient::acquire and release methods to properly pass KV value along with requests.
Addressing #15, KVClient::cas will now properly update the kv value, rather than nil'ing it out.
This release addresses #15:
Values class now implements \Iterator and \ArrayAccessKVClient::cas and KVClient::deleteCAS now properly check response boolThis release contains zero functionality changes. Its aim is to reduce the exported package size by removing items contained in the .gitattributes file.
Addresses bug present in PreparedQueryClient, addressed by PR #11
Adds support for the following Consul environment variables:
Client is only created by constructor if not set by config array
Just use guzzle directly. Easier, and actually allows support of all env vars.
Minor release that corrects some PHPDoc tags.
Fixes KVPair value decoded
How can I help you explore Laravel packages today?