Only support APTG SMS for now.
composer require unisharp/sms
Edit .env
:
APTG_MDN=xxx
APTG_UID=yyy
APTG_UPASS=zzz
SMS_IS_DRY_RUN=false // If set to true, no sms will be sent. Only log messages are recorded.
Code:
\Sms::send($phone_number, $message); // boolean value is returned.
$client = new AptgSmsClient('your APTG_MDN', 'your APTG_UID', 'your APTG_UPASS');
$response = $client->send([$phone_number], $message); // Instance of AptgClient is returned.