PHP code example of nuwira / smsgw

1. Go to this page and download the library: Download nuwira/smsgw library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nuwira / smsgw example snippets


'providers' => [
	Nuwira\Smsgw\SmsServiceProvider::class,
];

'aliases' => [
	'SMS' => Nuwira\Smsgw\SmsFacade::class,
];

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);
console
php artisan vendor:publish