jaanbv / smsbox-php-api
This library connects to the SmsBox api using php
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jaanbv/smsbox-php-api
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: 2025-12-31 00:22:48 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