smspro / sms
SMSPRO API Packages
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/smspro/sms
Requires
- php: >=8.1
 - ext-curl: *
 - ext-json: *
 - ext-mbstring: *
 - ext-mysqli: *
 - giggsey/libphonenumber-for-php: ^8.10
 - guzzlehttp/guzzle: ^7.5
 - icanboogie/inflector: ^3.0
 - nicoswd/php-gpg: ^1.7
 - vlucas/valitron: ^1.4
 
Requires (Dev)
- phpunit/phpunit: ^9.6.1
 
Suggests
- phpunit/phpunit: Allows automated tests to be run without system-wide install.
 
This package is auto-updated.
Last update: 2025-10-11 18:59:24 UTC
README
PHP SMS API Sending SMS via the SMSPRO SMS gateway
Requirement
This library needs minimum requirement for doing well on run.
- Sign up for a free SMSPRO account
 - Ask SMSPRO Team for new access_key for developers
 - SMSPRO SMS API client for PHP requires version 8.1.x and above
 
Installation via Composer
Package is available on Packagist, you can install it using Composer.
composer require smspro/sms
Or go to
And download the full version
If you want to install a legacy version running with PHP7.4
Run composer with the command below
composer require smspro/sms "1.0.*"
Or Download it from Smspro-SMS-API-Legacy
Quick Examples
Sending a SMS
$oMessage = \Smspro\Sms\Message::create('YOUR_PRO_API_KEY'); $oMessage->from ='SenderId'; $oMessage->to = '+254712509826,071250xxx'; $oMessage->message ='Test sms from smspro'; var_dump($oMessage->send());
Sending non customized sender SMS.
$oBalance = \Smspro\Sms\Balance::create('YOUR_PRO_API_KEY'); $response = $oBalance->get(); $balance = $response->getBalance(); $currency = $response->getCurrency(); $rate = $response->getRate(); echo "Your current balance is {$balance} {$currency} at a rate of {$rate}.\n";
Sending Bulk SMS from your Script
It is obvious that sending bulk data to any system is a problem! Therefore, you should check our recommendation for the best approach
WordPress Plugin
If you are looking for a powerful WordPress plugin to send SMS, then download our sms-pro-wp-plugin