laravel package for skebby sms gateway integration
This is an unofficial package for integrating skebby sms gateway with laravel projects., (*1)
you can install it using below composer command, (*2)
composer require jobayerccj/skebby
, (*3)
After installing package, write use jobayerccj\Skebby\Skebby;
where you want to use it, (*4)
Then create a new instance for that class like $skebby = new Skebby;
, (*5)
After that, update required information using following methods, (*6)
$skebby->set_username('skebby_username'); $skebby->set_password('skebby_password'); $skebby->set_method('send_sms_classic'); $skebby->set_text('text for your sms'); $skebby->set_sender('ICT Euro Limited');, (*7)
$recipients = array('+39..........'); $skebby->set_recipients($recipients);, (*8)
At last, use this method to send your sms $sending_status = $skebby->send_sms();
$sending_status
will show sending status(success, failed) whether it's failed or successful. If failed, then reason behind it, If successful, then will show sms id & remaining balance with status info., (*9)
There are few other methods for helping you like get_credit_info()
which will show your account's latest credit data., (*10)