A flexible PHP library for smartsms solutions
composer require coderatio/smartsms
require('vendor/autoload.php');
use Coderatio\Smartsms\Smartsms;
$config['token'] = env('SMARTSMS_TOKEN');
// Or
$config['token'] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$sms = Smartsms::init($config)
->to('XXX-XX-XXXX-XXXX')
->from('Coderatio')
->message('I have installed the library.')
->send();
The library returns json and object response type.
$sms->asObject(); //Returns response as object
$sms->response(); //Returns as json.
- Send sms from files (txt, pdf, docs, .xls)
- Test (Phpunit)