Class Config
ApiAxle\Config class encapsulates common configuration settings for calling ApiAxle apis
Author: Phillip Shipley <phillip@phillipshipley.com>
Located at src/ApiAxle/Shared/Config.php
public
|
|
public
|
|
public
array
|
|
public
boolean
|
#
loadConfigFile( string $file = false )
Load configuration from default config file unless alternate file is specified |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
protected
string
|
$endpoint | |
#
ApiAxle endpoing url |
protected
string
|
$key | |
#
ApiAxle API key |
protected
string
|
$secret | |
#
ApiAxle API shared secret for signing requests |
protected
boolean
|
$ssl_verifypeer | true |
#
Enable/Disable verification of peer certificate when calling API |
protected
string
|
$ssl_cainfo | null |
#
Additional config for cURL providing alternative CA certificate info. The name of a file holding one or more certificates to verify the peer with. Requires absolute path. Use this option alongside CURLOPT_SSL_VERIFYPEER. |
protected
string
|
$ssl_capath | null |
#
Additional config for cURL providing alternative CA certificate path. A directory that holds multiple CA certificates. Use this option alongside CURLOPT_SSL_VERIFYPEER. |
protected
boolean
|
$proxy_enable | false |
#
Enable/disable usage of a proxy server |
protected
string
|
$proxy_host | |
#
Set proxy server hostname |
protected
string
|
$proxy_port | |
#
Set proxy server port |