dyrynda/maxo-php

Maxo Telecommunications SMS API的PHP SDK

dev-main 2024-04-04 12:46 UTC

This package is auto-updated.

Last update: 2024-09-04 13:38:15 UTC


README

注意

此SDK仍在开发中。虽然对于已实现的资源功能正常,但它基于Maxo的文档构建,以应对乐观场景。

Maxo是一家总部位于澳大利亚的电信服务提供商。

使用此SDK需要Maxo账户以及API密钥。

我立即使用此API是为了发送短信,因此这些资源被优先构建。

此包利用Saloon进行其HTTP层。

资源

安装

composer require dyrynda/maxo-php

使用

use Dyrynda\Maxo\Maxo;
use Dyrynda\Maxo\Data\Sms\SendMessageData;

$maxo = new Maxo(
    key: 'your-maxo-key'
);

$response = $maxo->sms()->sendMessage(
    new SendMessageData(...)
);