PHP Package: php-http/curl-client

Efficient PHP library for making HTTP requests using cURL with advanced features and flexibility.

Current Version: 2.3.3
Last Updated: 2024-10-31
PHP Requirement: >=7.1
Dependencies: php-http/message, php-http/discovery, psr/http-client, psr/http-message
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP HTTP cURL Client library provides a powerful and versatile solution for sending HTTP requests in PHP applications. With support for various HTTP methods, headers, and authentication mechanisms, it simplifies the process of interacting with web services and APIs. Additionally, it offers advanced features such as request/response interception, asynchronous requests, and error handling, making it a reliable choice for developers seeking robust HTTP communication capabilities.

🔗 View on GitHub

Download Latest Version: 2.3.3

Download Download v2.3.3

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/php-http/curl-client/2.3.3/autoload.php';

use Http\Client\Curl\CurlClient;
use Http\Message\MessageFactory;
use Http\Discovery\HttpAsyncClientDiscovery;
use Psr\Http\Client\ClientInterface;
use Psr\Http\Message\RequestInterface;


$obj = new Http\Client\Curl\CurlClient();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.