masyasmv/finam-sdk-laravel
A Laravel wrapper for the Finam SDK that simplifies integrating Finam brokerage APIs into PHP applications. It offers Laravel-friendly configuration and service container bindings, making it easy to authenticate and access market data and trading endpoints from your Laravel app.
composer require <vendor>/<package> and let Laravel auto-discover the service provider.php artisan vendor:publish --tag=...) and set credentials/endpoints in .env; avoid committing tokens.retry_delay_ms, retry_multiplier, timeouts) and FinamClient for request/response behavior.FinamClient (or the package’s binding/interface) in controllers, jobs, and services so Laravel wires config and the underlying HTTP client.retry_multiplier = 1.0 for fixed delays in local/dev, and raise it (e.g. 1.5–2.0) in production where 429/503 responses benefit from exponential backoff.Retry-After. v1.2.0 honors the header when present; still set a sane retry_delay_ms as the fallback for responses without it.tries/backoff, and make operations idempotent where the upstream API allows it.Http::fake(). Assert request counts and sequences for 429 → 200 and 503 → 200 flows, including a Retry-After header, to lock in the new behavior.retry_multiplier defaults to 1.0, which means fixed delays. If you expected exponential backoff from the release notes, you must opt in explicitly.Retry-After, sleep time can exceed queue worker or HTTP timeout limits.Retry-After parsing matters. The header may be seconds or an HTTP date; verify behavior in tests and avoid assuming it is always numeric.php artisan config:clear (or rebuild the cache) before debugging.How can I help you explore Laravel packages today?