smsalert-mobi/smsalert-php

PHP集成用于SMSAlert.mobi API短信网关

1.0.5 2023-08-26 16:59 UTC

This package is auto-updated.

Last update: 2024-09-26 19:11:55 UTC


README

文档

有关SMSAlert API的文档可以在此处找到。

PHP库文档可以在此处找到。

此库支持以下PHP实现

  • PHP 7.4 | ^8.0

安装

您可以通过composer安装smsalert-phpp或下载源代码。

通过Composer

smsalert-php作为smsalert-mobi/smsalert-php软件包在Packagist上提供

composer require smsalert-mobi/smsalert-php

快速入门

发送短信

// Send an SMS using SMSAlert's REST API and PHP
<?php
$username = "demo"; // Your account username
$apiKey = "api_key_here"; // Your account apiKey from https://smsalert.mobi/settings

$client = new SmsAlert\SmsClient($username, $apiKey);
$messageId = $client->sendSms('0720123456', 'test api');

echo $messageId;

获取帮助

如果您需要安装或使用库的帮助,您可以联系我们contact@smsalert.mobi。如果您在库中发现了错误或希望添加新功能,请在此存储库中打开问题或拉取请求!