Download the PHP package wexample/symfony-remote without Composer
On this page you can find all versions of the php package wexample/symfony-remote. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wexample/symfony-remote
More information about wexample/symfony-remote
Files in wexample/symfony-remote
Package symfony-remote
Short Description Registry, health checks and configuration of the external services a Symfony app talks to
License MIT
Informations about the package symfony-remote
symfony-remote
Version: 2.4.0
Registry, health checks and configuration of the external services a Symfony app talks to
Table of Contents
- Installation
- Introduction
Installation
Bundle
Nothing else is required: with no configuration, the registry holds the services the app declares as remotes, and remote:status checks them.
Credentials
Credentials come from environment variables or Symfony secrets, through the configuration. Use %env(default::NAME)% for a value that may be absent: the remote then reads Unconfigured instead of the container failing to boot.
Shared quotas
A client with a rate_limit becomes a framework rate limiter stored in the cache.rate_limiter pool. A lock is used only where the app configured symfony/lock; without one, two processes may both take the last token of a window, which is acceptable for a quota and not for a counter.
symfony-remote is a Symfony bundle for everything an application talks to outside itself — an HTTP API, an SDK, a binary. It keeps what those have in common: a registry of the app's remotes, a status per remote (up, down, or unconfigured when its credentials are missing), and remote:status, a command that checks them all and fails when one is down, so a cron or a probe can run it as is.
It is not a transport. Any service implementing RemoteInterface is a remote, whatever library it talks through. For HTTP APIs built on wexample/php-api, which carry the most boilerplate, a client is declared in configuration instead: base URL, key, headers, timeouts and retries, and a quota shared by every process of the app, built on Symfony's rate limiter.
The framework-free part — the remote contract, the registry, the statuses and the php-api client building — is wexample/php-remote; this bundle wires it into Symfony.
Screens to watch and test the remotes live in symfony-remote-ds; clients of one given service in symfony-remote-<service>.
All versions of symfony-remote with dependencies
symfony/rate-limiter Version ^7.4
wexample/php-api Version >=5.1.0
wexample/php-remote Version >=4.0.0
wexample/symfony-helpers Version >=19.3.0