Download the PHP package faso-dev/simple-curl-client without Composer
On this page you can find all versions of the php package faso-dev/simple-curl-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download faso-dev/simple-curl-client
More information about faso-dev/simple-curl-client
Files in faso-dev/simple-curl-client
Package simple-curl-client
Short Description A small client that wrap curl for get and post request
License MIT
Informations about the package simple-curl-client
simple-curl-client
Simple Curl Client is a simple PHP library to make HTTP requests using the cURL extension. This package is a very simple implementation of the basic get and post requests.
Requirements
Before using this package, you need to have a some requirements installed:
- PHP 7.4 or higher
- ext-curl
- ext-json
Installation
You can install the package using composer:
Usage
When you have installed the package, you can use it in your code:
The get
method is used to make a GET request and have theses parameters:
$url
(string): The URL to make the request.$queries
(array): The query parameters to add to the URL.$options
(array): The options to add to the request. Note that we have aheaders
key in the$options
array to add the headers to the request.
The post
method is used to make a POST request and have theses parameters:
$url
(string): The URL to make the request.$data
(array): The data to send to the URL.$options
(array): The options to add to the request. Note that we have aheaders
key in the$options
array to add the headers to the request.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
All versions of simple-curl-client with dependencies
ext-curl Version *
ext-json Version *
ext-simplexml Version *