Sms.php 610 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace common\helpers;
  3. use common\components\EknotifierSmsDriver;
  4. class Sms
  5. {
  6. const welcomePack = 'welcomePack';
  7. /**
  8. * Send the SMS.
  9. *
  10. * @param string $mobile
  11. * @param string $message
  12. * @param string $userId
  13. * @param string $countryId
  14. * @param string $classify
  15. * @return bool
  16. * @throws \Exception
  17. */
  18. public static function sendSMS(string $mobile, string $message, string $userId, string $countryId, string $classify): bool
  19. {
  20. return (new EknotifierSmsDriver)->send($mobile, $message, $userId, $countryId, $classify);
  21. }
  22. }