Download the PHP package mohebbi/curl without Composer
On this page you can find all versions of the php package mohebbi/curl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package curl
Short Description A comprehensive, fluent, and object-oriented cURL library for PHP, supporting single and multi-requests with advanced options.
License MIT
Homepage https://github.com/Dev-AminMohebbi/MohebbiCurl
Informations about the package curl
MohebbiCurl: A Modern, Fluent cURL Library for PHP
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
- ✅ 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
CurlRequestandCurlResponseobjects. - ✅ Fully compatible with modern PHP and Composer.
Installation
You can install the library via Composer.
Basic Usage
Making a simple GET request is straightforward. The fluent interface allows you to build your request step-by-step.
More Examples
For more advanced use cases, please see the examples/ directory:
- POST Requests & File Uploads:
examples/file_upload.php - Concurrent Requests:
examples/multi_requests.php - Advanced Configuration:
examples/advanced_options.php
Testing
To run the test suite, you need to install the development dependencies and then run PHPUnit.
Contributing
Contributions are welcome! Please feel free to submit a pull request or create an issue for bugs, questions, or feature requests.
License
The MohebbiCurl library is open-source software licensed under the MIT license.
All versions of curl with dependencies
ext-curl Version *
ext-json Version *