library sms
Aptg SMS client for Laravel
unisharp/sms
Aptg SMS client for Laravel
- Tuesday, July 31, 2018
- by g0110280
- Repository
- 8 Watchers
- 0 Stars
- 22 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 1 Versions
- 0 % Grown
SMS package for Laravel
Only support APTG SMS for now., (*1)
Installation
composer require unisharp/sms
Usage
Using facade
Edit .env
:, (*2)
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:, (*3)
\Sms::send($phone_number, $message); // boolean value is returned.
Pass credentials manually
$client = new AptgSmsClient('your APTG_MDN', 'your APTG_UID', 'your APTG_UPASS');
$response = $client->send([$phone_number], $message); // Instance of AptgClient is returned.
dev-master
9999999-dev
Aptg SMS client for Laravel
Sources
Download
MIT
The Requires
laravel
sms
aptg