instance()
instance(array $params = null) : \BotGuard\BotGuard
Initializes the BotGuard class instance.
When calling first time, the parameters are required, next time they can be omitted.
Parameters
array | $params | Associative array of configuration parameters: ["primary_server" => "xxx.botguard.net", "secondary_server" => "yyy.botguard.net"]. Check your BotGuard account to obtain actual servers addresses. |
Returns
\BotGuard\BotGuard —The BotGuard class instance.