etech / sms
CAMOO API Packages
v1.4
2023-02-11 10:46 UTC
Requires
- php: >=8.0
- ext-mbstring: *
- ext-mysqli: *
- camoo/curl-http-client: ^1.0
- giggsey/libphonenumber-for-php: ^8.10
- vlucas/valitron: ^1.4
Requires (Dev)
- phpunit/phpunit: ^9.0
Suggests
- phpunit/phpunit: Allows automated tests to be run without system-wide install.
README
This library needs minimum requirement for doing well on run.
- Sign up for a free CAMOO SMS account
- Ask CAMOO Team for new access_key for developers
- CAMOO SMS API client for PHP requires version 8.0.x and above
Installation via Composer
Package is available on Packagist, you can install it using Composer.
composer require etech/sms
Quick Examples
Sending a SMS
$oMessage = \Etech\Sms\Message::create('YOUR_LOGIN', 'YOUR_PASSWORD'); $oMessage->from ='YourCompany'; $oMessage->to = '+237612345678'; $oMessage->message ='Hello World! Déjà vu!'; var_dump($oMessage->send());
Send the same SMS to many recipients
- Per request, a max of 50 recipients can be entered.
$oMessage = \Etech\Sms\Message::create('YOUR_LOGIN', 'YOUR_PASSWORD'); $oMessage->from ='YourCompany'; $oMessage->to =['+237612345678', '+237612345679', '+237612345610']; $oMessage->message ='Hello World! Déjà vu!'; var_dump($oMessage->send());