jaanbv / smsbox-php-api
This library connects to the SmsBox api using php
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: 2026-03-29 01:23:35 UTC
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