jaanbv / smsbox-php-api
这个库使用 PHP 连接到 SmsBox API
1.0.3
2024-09-03 08:18 UTC
Requires
- php: >=8.1.0
- ext-curl: *
- ext-json: *
- ext-simplexml: *
- myclabs/php-enum: ^1.8
Requires (Dev)
- phpunit/phpunit: ^5
This package is auto-updated.
Last update: 2024-09-03 13:44:20 UTC
README
此库使用 PHP 连接到 SmsBox API。
安装
"jaanbv/sms-php-api": "^1.*"
或运行
composer require jaanbv/sms-php-api
示例
在 examples/credentials.php 中填写您的 API 密钥,然后您可以执行示例
# Get remaining credits php examples/example-balance.php # Validate phone number php examples/example-isValidPhoneNumber.php # Retrieving phone number data php examples/example-retrievePhoneNumberData.php # Send SMS php examples/example-sendSms.php # Send Voice message php examples/example-sendVoice.php # The following examples can be used to send & verify a one-time-password php examples/example-sendSmsWithOneTimePassword.php php examples/example-verifyOneTimePasswordCode.php
PHPUnit
执行所有测试
./vendor/bin/phpunit tests