PHPackages                             mohebbi/curl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. mohebbi/curl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mohebbi/curl
============

A comprehensive, fluent, and object-oriented cURL library for PHP, supporting single and multi-requests with advanced options.

v1.0.0(11mo ago)01MITPHPPHP ^7.4|^8.0CI failing

Since Jun 12Pushed 11mo agoCompare

[ Source](https://github.com/Dev-AminMohebbi/MohebbiCurl)[ Packagist](https://packagist.org/packages/mohebbi/curl)[ Docs](https://github.com/Dev-AminMohebbi/MohebbiCurl)[ RSS](/packages/mohebbi-curl/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

MohebbiCurl: A Modern, Fluent cURL Library for PHP
==================================================

[](#mohebbicurl-a-modern-fluent-curl-library-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/902b2e9b298a5ac8736ca064bd099f66e06bccb36aabef5a9ee6ccc135930f3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68656262692f6375726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohebbi/curl)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![PHP Version Require](https://camo.githubusercontent.com/cc880f92f6109e1adcdd228a66d9ae32ce0bac56f705d9752843750e3ea6eff0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702f6d6f68656262692f6375726c3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohebbi/curl)[![Total Downloads](https://camo.githubusercontent.com/4073296ec1f37620c9e940129ae574b293c3644a60fcc8cbf3b118acd65d46a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68656262692f6375726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohebbi/curl)

MohebbiCurl is a powerful, object-oriented, and fluent cURL library for PHP. It simplifies the process of making HTTP requests, handling responses, and managing errors, whether you're dealing with a single request or hundreds of concurrent ones.

This library is designed to be both easy to use for beginners and powerful enough for advanced users, providing a clean and modern API for all your cURL needs.

Features
--------

[](#features)

- ✅ **Fluent, chainable interface** for building requests.
- ✅ Support for both **single and concurrent (multi)** requests.
- ✅ Robust, object-oriented **error and exception handling** with detailed information.
- ✅ Effortless **JSON and form data** handling.
- ✅ Easy **file uploads** and downloads.
- ✅ Full control over **headers, cookies, proxies, and authentication**.
- ✅ Advanced options management with built-in **presets** (e.g., for APIs, scraping).
- ✅ Well-structured and predictable `CurlRequest` and `CurlResponse` objects.
- ✅ Fully compatible with modern PHP and Composer.

Installation
------------

[](#installation)

You can install the library via [Composer](https://getcomposer.org/).

```
composer require mohebbi/curl
```

Basic Usage
-----------

[](#basic-usage)

Making a simple GET request is straightforward. The fluent interface allows you to build your request step-by-step.

```
