nuwira/smsgw
Installation
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.
Configuration
Laravel version >= 5.5
Nothing to do. This package use package auto-discovery feature.
Laravel version < 5.5
Open config/app.php add these lines:
'providers' => [
Nuwira\Smsgw\SmsServiceProvider::class,
];
'aliases' => [
'SMS' => Nuwira\Smsgw\SmsFacade::class,
];
Publish Config
php artisan vendor:publish
Open your .env file or config/sms.php and add your URL and API Key.
Usage
Auth
SMS::auth($username, $password);
Profile
SMS::profile();
Send Bulk SMS
$bulk = [
[
'to' => $number,
'message' => $message,
]
];
SMS::bulk($bulk);
Send Single SMS
SMS::send($to_number, $message);
Check Credit
SMS::credit();
Get Received (Inbox)
SMS::received($startDate, $endDate, $search, $page);
Get Detailed Received SMS (Inbox)
SMS::receivedId($id);
Get Sent (Outbox)
SMS::sent($startDate, $endDate, $status, $search, $page);
Get Detailed Sent SMS (Outbox)
SMS::sentId($id);
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 4.2.1 | ^5.0 | ||
| 4.2 | ~5.8 | ||
| 4.1 | ~5.0 | ||
| 4.0 | ~5.0 | ||
| 3.1 | ~5.0 | ||
| 3.0 | ~5.0 | ||
| 2.5 | ^5.1 | proprietary | |
| 2.4 | ^5.1 | proprietary | |
| 2.3 | ^5.1 | proprietary | |
| 2.2 | ^5.1 | proprietary | |
| 2.1 | ^5.1 | proprietary | |
| 2.0 | ^5.1 | proprietary | |
| 1.6 | ^5.1 | proprietary | |
| 1.5 | ^5.1 | proprietary | |
| 1.4 | ^5.1 | proprietary | |
| 1.3 | ^5.1 | proprietary | |
| 1.2 | ^5.1 | proprietary | |
| 1.1 | ^5.1 | proprietary | |
| 1.0 | ^5.1 | proprietary |