Download the PHP package huangdijia/laravel-sms without Composer
On this page you can find all versions of the php package huangdijia/laravel-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-sms
Laravel-sms
Installation
Install package
composer require huangdijia/laravel-sms
Install configure
php artisan sms:install
Uage
Simple to send a message
use Huangdijia\Sms\Facades\Sms;
Sms::to('phone number')->content('message content')->send();
Check send result
$response = Sms::to('phone number')->content('message content')->send();
if ($response->successful()) {
// success
}
Throwing Exceptions
$response = Sms::to('phone number')->content('message content')->send();
$response->throw();
Switch sms factory
Sms::use('another')->to('phone number')->content('message content')->send();
With Validate Rules
Sms::withRules([
'to' => 'required|numeric|....',
'content' => 'required|...',
], [
'to.required' => ':attribute cannot be empty!',
'content.required' => ':attribute cannot be empty!',
// more messages
])->to()->content()->send();
All versions of laravel-sms with dependencies
PHP Build Version
Package Version
No informations.
The package huangdijia/laravel-sms contains the following files
Loading the files please wait ....