httpClient->request('POST', self::BASE . '/send', [ 'json' => ['from' => $this->sender, 'to' => [$mobile], 'text' => $message], 'headers' => ['ApiKey' => $this->apiKey], 'timeout' => 10, ]); return $resp->getStatusCode() === 200; } catch (\Throwable) { return false; } } public function sendTemplate(string $mobile, string $templateCode, array $vars): bool { try { $resp = $this->httpClient->request('POST', self::BASE . '/send/verify', [ 'json' => [ 'mobile' => $mobile, 'template' => $templateCode, 'params' => $vars, ], 'headers' => ['ApiKey' => $this->apiKey], 'timeout' => 10, ]); return $resp->getStatusCode() === 200; } catch (\Throwable) { return false; } } }