jaanbv/smsbox-php-api
最新稳定版本:1.0.3
Composer 安装命令:
composer require jaanbv/smsbox-php-api
包简介
This library connects to the SmsBox api using php
README 文档
README
This library connects to the SmsBox API using PHP.
Installation
"jaanbv/sms-php-api": "^1.*"
or run
composer require jaanbv/sms-php-api
Examples
- Sending SMS
- Checking balance
- Checking if phone number is valid
- Retrieving phone number data
- Send sms with one time password
- Verify one time password code
Fill in your API-key in examples/credentials.php, then you can execute the examples:
# 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
Executing all tests:
./vendor/bin/phpunit tests
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-03