Curl
extends Component
in package
implements
ISingleton
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $instance : Curl
- $curl_handle : resource
- $error_file : resource
- $hashCode : int
- $hashCounter : int
- $info : mixed
Methods
- __call() : mixed
- __callStatic() : mixed
- __destruct() : mixed
- __get() : mixed
- delete() : mixed
- Performs a DELETE HTTP request
- extends() : bool
- get() : mixed
- Performs a GET HTTP request
- getInfo() : array<string|int, mixed>
- Gets the info of the last CURL request
- getInstance() : Curl
- getReflection() : ReflectionClass
- getResponseCode() : mixed
- post() : mixed
- Performs a POST HTTP request
- put() : mixed
- Performs a PUT HTTP request
- __construct() : mixed
- init() : mixed
- sendRequest() : mixed
Properties
$instance
protected
static Curl
$instance
$curl_handle
private
resource
$curl_handle
$error_file
private
resource
$error_file
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$info
private
mixed
$info
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
delete()
Performs a DELETE HTTP request
public
delete(string $url[, array<string|int, mixed> $options = array() ][, bool $json_decode = false ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = array()
- $json_decode : bool = false
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolget()
Performs a GET HTTP request
public
get(string $url[, array<string|int, mixed> $options = array() ][, bool $json_decode = false ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = array()
- $json_decode : bool = false
getInfo()
Gets the info of the last CURL request
public
getInfo() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —The info of the last curl request
getInstance()
public
static getInstance() : Curl
Return values
CurlgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetResponseCode()
public
getResponseCode() : mixed
post()
Performs a POST HTTP request
public
post(string $url[, array<string|int, mixed> $options = array() ][, bool $json_decode = false ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = array()
- $json_decode : bool = false
put()
Performs a PUT HTTP request
public
put(string $url[, array<string|int, mixed> $options = array() ][, bool $json_decode = false ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = array()
- $json_decode : bool = false
__construct()
protected
__construct() : mixed
init()
protected
init() : mixed
sendRequest()
private
sendRequest(string $url[, array<string|int, mixed> $options = array() ][, bool $json_decode = FALSE ]) : mixed
Parameters
- $url : string
- $options : array<string|int, mixed> = array()
- $json_decode : bool = FALSE