From superpowers-laravel
Configures Laravel HTTP client with timeouts, retries, backoff, logging, and concurrency for resilient outbound API calls. Use for predictable, observable requests.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelThis skill uses the workspace's default tool permissions.
Design outbound calls to be predictable and observable.
Implements Python resilience patterns: retries with tenacity, exponential backoff, jitter, timeouts, and decorators. For fault-tolerant services handling transient failures and network issues.
Generates PSR-18 compliant HTTP client for PHP 8.4 using cURL with request sending, exception handling, and unit tests. For external API integrations, microservices, and HTTP service calls.
Implements .NET resilience patterns with Polly v8 including retry, circuit breaker, timeout, fallback, rate limiter, hedging, and pipelines for HTTP clients handling transient failures.
Share bugs, ideas, or general feedback.
Design outbound calls to be predictable and observable.
use Illuminate\Support\Facades\Http;
$res = Http::baseUrl(config('services.foo.url'))
->timeout(5)
->retry(3, 200, throw: false)
->withHeaders(['Accept' => 'application/json'])
->get('/v1/things', ['q' => 'bar']);
if (!$res->successful()) {
Log::warning('foo api failure', [
'status' => $res->status(),
'body' => substr($res->body(), 0, 500),
]);
}
pool() for concurrency when calling multiple endpoints