Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Consul Php Sdk Laravel Package

sensiolabs/consul-php-sdk

A thin PHP wrapper around the Consul HTTP API, covering agent, catalog, health, kv, session and txn services. Methods return a ConsulResponse and throw exceptions on 4xx/5xx errors, with handy lock and semaphore helpers for distributed coordination.

View on GitHub
Deep Wiki
Context7
v5.4.0

This release covers the whole Consul CE HTTP API and modernizes the code base.

New features

  • Add ACL, Config, Connect, Coordinate, DiscoveryChain, Event, Operator, Peering, PreparedQuery, Snapshot and Status services
  • Add all missing endpoints to Agent, Catalog and Health services
  • Whitelist all documented options (blocking queries, consistency modes, filtering, ...) in Agent, Catalog, Health, KV and Session services
  • Support multi-valued options (e.g. ['tag' => ['v1', 'primary']])
  • Allow the dc option on all endpoints not local to the agent
  • Read the ACL token from the CONSUL_HTTP_TOKEN environment variable

Bug fixes

  • Fix MultiSemaphore reusing the metadata of a previous resource when acquiring many resources
  • Fix Session::create() (and so LockHandler) when called without arguments
  • Fix Agent::join() and Agent::forceLeave() HTTP method (PUT instead of GET)

Requirements

Dependency 5.3 5.4
PHP ≥ 8.1 ≥ 8.2
symfony/http-client 5.4, 6.4, 7.x, 8.x 6.4, 7.4, 8.1+
psr/log 1.x, 2.x, 3.x 2.x, 3.x

Internals

  • Modernize the code base (readonly classes and properties, constructor property promotion, ...)
  • Switch the test suite from symfony/phpunit-bridge to PHPUnit 11+
  • Rework the README

What's Changed

Full Changelog: https://github.com/FriendsOfPHP/consul-php-sdk/compare/v5.3.0...v5.4.0

v5.2.0

What's Changed

Full Changelog: https://github.com/FriendsOfPHP/consul-php-sdk/compare/v5.1.0...v5.2.0

v5.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/FriendsOfPHP/consul-php-sdk/compare/v5.0.0...v5.1.0

v5.0.0

What's Changed

This is the first big release under friendsofphp umbrella. There are lot of BC breaks, but they should be easy to fix. From now on, a particular attention will be given to not break the BC and to provide a nice upgrade path.

  • Rename package from sensiolabs/consul-php-sdk to friendsofphp/consul-php-sdk
  • Get ride of SensioLabs namespace (from SensioLabs\Consul to Consul)
  • Add typehint where possible
  • Force JSON body request where possible (now you must pass an array as body)
  • Remove the factory and almost all interfaces
  • Bump to PHP 7.4+
  • Add support for missing scheme in DSN
  • Switch from Travis to GitHub Action
  • Add some internal tooling (php-cs-fixer, phpstan, phpunit, Makefile)
  • Add MultiLockHandler and MultiSemaphore helpers
  • Prepare v5 by @lyrixx in https://github.com/FriendsOfPHP/consul-php-sdk/pull/60
  • Add MultiLockHandler and MultiSemaphore helpers by @kufd in https://github.com/FriendsOfPHP/consul-php-sdk/pull/13

New Contributors

Full Changelog: https://github.com/FriendsOfPHP/consul-php-sdk/compare/v4.2.1...v5.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc