Download the PHP package struktal/struktal-curl without Composer
On this page you can find all versions of the php package struktal/struktal-curl. 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 struktal-curl
Struktal-Curl for PHP
This is a wrapper library for PHP's cURL functions. It allows you to easily send GET and POST requests
Installation
To install this library, include it in your project using composer:
Usage
Simple GET or POST requests
The following example shows how to send a GET request to a HTML page: `URL` is the URL of the server that you want to send the request to. To send a POST request, simply replace `Curl::$METHOD_GET` with `Curl::$METHOD_POST`. However note, that the above example does not send any POST data to the server.POST requests with data
To send POST data to the server, use the `setPostFields()` method: The above example requests a JSON response from the server with the URL `URL` and sends the POST data `key=value` along with the request. You can also send JSON-encoded POST data by setting the `asJson` flag of the `setPostFields` method to `true`.All versions of struktal-curl with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
ext-json Version *
ext-curl Version *
ext-json Version *
ext-curl Version *
The package struktal/struktal-curl contains the following files
Loading the files please wait ...