huangdijia/laravel-sms is a Laravel package for sms for laravel.
It currently has 2 GitHub stars and 6.995 downloads on Packagist (latest version 1.1.7).
Install it with composer require huangdijia/laravel-sms.
Discover more Laravel packages by huangdijia
or browse all Laravel packages to compare alternatives.
Last updated
composer require huangdijia/laravel-sms
php artisan sms:install
use Huangdijia\Sms\Facades\Sms;
Sms::to('phone number')->content('message content')->send();
$response = Sms::to('phone number')->content('message content')->send();
if ($response->successful()) {
// success
}
$response = Sms::to('phone number')->content('message content')->send();
$response->throw();
Sms::use('another')->to('phone number')->content('message content')->send();
Sms::withRules([
'to' => 'required|numeric|....',
'content' => 'required|...',
], [
'to.required' => ':attribute cannot be empty!',
'content.required' => ':attribute cannot be empty!',
// more messages
])->to()->content()->send();