Download the PHP package chaoswd/http without Composer
On this page you can find all versions of the php package chaoswd/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package http
Chaos HTTP
chaoswd/http is a lightweight HTTP client wrapper for PHP that simplifies making GET and POST requests using native cURL.
It provides simple methods for sending requests and returning structured responses as a string, objects or arrays.
🚀 Installation
Install via Composer:
🧩 Basic Usage
⚙️ Features
- Simplified wrapper around PHP’s native cURL
- Supports GET, POST methods
- Handles headers and query parameters
- Configurable timeout
Example POST request:
📚 Methods
| Method | Description |
|---|---|
get(string $url, array $params = []) |
Send a GET request |
post(string $url, array $data = []) |
Send a POST request |
withHeaders(array $headers) |
Set request headers |
withTimeout(int $seconds) |
Set request timeout |
headers() |
Return headers |
json() |
Return a JSON string |
object() |
Parse JSON as objects |
array() |
Parse JSON as arrays |
🧾 Example: Custom Headers
🧰 Requirements
- PHP 8.2+
- cURL extension enabled
🪪 License
Released under the MIT License.
© 2025 Chaos Web Development & Jordan Gerber
All versions of http with dependencies
PHP Build Version
Package Version
No informations.
The package chaoswd/http contains the following files
Loading the files please wait ...