Documentation

Curl extends Component
in package
implements ISingleton

FinalYes
Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

Table of Contents

Interfaces

ISingleton

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

Methods

__callStatic()

public static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : mixed
$arguments : array<string|int, 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
bool

get()

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

getReflection()

public getReflection() : ReflectionClass
Return values
ReflectionClass

getResponseCode()

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

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

        
On this page

Search results