Twsms 簡訊發送
composer require platolin/twsms-sender
The recommended way to install SmsSender is through composer.
Just create a composer.json
file for your project:
{
"require": {
"platolin/twsms-sender": "~1.0"
}
}
<?php
$longsms ='N';
$TwsmsSender = new TwSmsSender('username','password');
$result = $TwsmsSender->send('0975000000', 'test sms message', '201612312359' ,$longsms);