static function __callStatic($name, $args) { if (!self::$client) { self::$client = new GuzzleHttp\Client(); } return call_user_func_array([self::$client, $name], $args); }
static function __callStatic($name, $args) { if (!self::$client) { self::$client = new GuzzleHttp\Client(['defaults' => ['timeout' => 10, 'headers' => ['User-Agent' => 'PHP']]]); } return call_user_func_array([self::$client, $name], $args); }