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

1.0.3 2024-09-03 08:18 UTC

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

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