PHP code example of jaanbv / smsbox-php-api
1. Go to this page and download the library: Download jaanbv/smsbox-php-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jaanbv / smsbox-php-api example snippets
json
"jaanbv/sms-php-api": "^1.*"
bash
# 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