Package Data | |
---|---|
Maintainer Username: | matriphe |
Maintainer Contact: | zam@nuwira.co.id (Muhammad Zamroni) |
Package Create Date: | 2015-12-30 |
Package Last Update: | 2020-05-19 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-26 15:10:20 |
Package Statistics | |
---|---|
Total Downloads: | 338 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 7 |
Total Forks: | 0 |
Total Open Issues: | 2 |
composer require nuwira/smsgw
Version 3.0 is for old API. For new API, use version 4.0 (latest).
Version 2.0 has been deprecated. Please don't use the version 2.0 or below.
Nothing to do. This package use package auto-discovery feature.
Open config/app.php
add these lines:
'providers' => [
Nuwira\Smsgw\SmsServiceProvider::class,
];
'aliases' => [
'SMS' => Nuwira\Smsgw\SmsFacade::class,
];
php artisan vendor:publish
Open your .env
file or config/sms.php
and add your URL and API Key.
SMS::auth($username, $password);
SMS::profile();
$bulk = [
[
'to' => $number,
'message' => $message,
]
];
SMS::bulk($bulk);
SMS::send($to_number, $message);
SMS::credit();
SMS::received($startDate, $endDate, $search, $page);
SMS::receivedId($id);
SMS::sent($startDate, $endDate, $status, $search, $page);
SMS::sentId($id);