1. Go to this page and download the library: Download guilhermedev98/larasms 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/ */
SMS::send(['62891111111'], 'Hello, how are you?');
// get registered device information
SMS::device(?int $id); // $id is nullable
// get detailed information from message
SMS::info(int $id);
// cancel queued message
SMS::cancel(array $id);
SMS::setDevice(12345) // make sure it's integer value
->setToken('secret-token')
->send(['08111111111'], 'Message with custom device and token.');
// get credit balance
SMS::credit();
SMS::setUser('you')
->setPassword('secret')
->send(['08111111111'], 'Message with custom user and password.');