ixudra/curl
ixudra/curl is a fluent, Laravel-friendly PHP cURL wrapper for building and sending HTTP requests. Configure options with a query-builder-like API, use handy helpers for common settings, and integrate easily via service provider/facade (framework-independent core).
withBearer()).file_get_contents() or curl_exec() calls with a maintainable, debuggable layer.Adopt if:
Look elsewhere if:
Http client or Guzzle directly).Http client is more integrated)."This package lets our team build API integrations 30% faster by standardizing HTTP calls—like a ‘query builder for APIs.’ It handles auth, files, and debugging automatically, reducing bugs in payment systems, third-party syncs, and file uploads. For example, instead of writing 20 lines of cURL code for a Stripe API call, we’d use 5 lines with built-in error handling. The MIT license means no vendor lock-in, and it’s already battle-tested in production."
ROI:
Curl::to('api.example.com')->withBearer($token)->post()) is self-documenting.*"This is Guzzle Lite for Laravel, but with Laravel’s fluent syntax and built-in Laravel integration (facades, service providers). Key advantages:
Curl::to()) and Lumen.withBearer()), JSON (asJson()), and files (withFile()) reduce boilerplate.enableDebug()).Trade-offs:
Recommendation: Use this for internal API clients (e.g., payment processors, CRM syncs) and fall back to Guzzle for public APIs or complex streaming. Pair with Laravel’s Http client for Lumen 8+ projects."*
How can I help you explore Laravel packages today?