laravel-sms maintained by huangdijia
Last update
2020/11/24 11:13
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
- alibabacloud/client ^1.5
Last update
2020/11/24 11:13
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
- alibabacloud/client ^1.5
Last update
2020/11/24 10:21
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
- alibabacloud/client ^1.5
Last update
2020/11/02 08:42
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
- alibabacloud/client ^1.5
Last update
2020/10/29 10:59
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
- alibabacloud/client ^1.5
Last update
2020/10/10 05:45
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
Last update
2020/08/26 11:47
License
Require
- php >=7.2.0
- illuminate/support ^7.0|^8.0
- illuminate/notifications ^7.0|^8.0
- illuminate/contracts ^7.0|^8.0
- guzzlehttp/guzzle ^6.4|^7.0
Last update
2020/05/29 10:53
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/05/20 10:53
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/05/20 10:18
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/30 02:24
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 09:01
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 08:56
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 08:47
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 08:46
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 08:33
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 06:21
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 05:37
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 05:32
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/16 04:42
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
Last update
2020/03/10 03:34
License
Require
- php >=7.2.0
- illuminate/support ^7.0
- illuminate/notifications ^7.0
- illuminate/contracts ^7.0
- guzzlehttp/guzzle ^6.4
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();

