Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Laravel Http Client

Security covered Drupal 10–11
View on drupal.org

This module integrates the Laravel HTTP client into Drupal, providing a streamlined way to make HTTP requests with features like retries and custom headers, mirroring the functionality available in the Laravel framework. It allows developers to leverage Laravel's robust HTTP client capabilities directly within their Drupal projects.

Integrate the Laravel Http client with Drupal

use Drupal\laravel_http_client\Service\Http;

// Retry time and delay in ms.
Http::retry(3, 100)->withQueryParameters([
    'name' => 'Taylor',
    'page' => 1,
])->get('http://example.com/users')


Http::macro('github', function () {
  return Http::withHeaders([
    'X-Example' => 'example',
  ])->baseUrl('https://github.com');
});
$response = Http::github()->get('/');

Detail use of Laravel Http client
https://laravel.com/docs/11.x/http-client

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Releases

Version Type Core Release date
11.0.1 Stable 10–11 Jun 13, 2025
10.0.1-beta1 Pre-release 10–11 Nov 14, 2024