laravel-sms maintained by zing
Description
Provides sms notification channel for Laravel.
Author
Last update
2026/08/24 10:04
(6.x-dev)
License
Downloads
5 400
Last update
2026/08/24 10:04
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- overtrue/easy-sms ^2.4.2 || ^3.0.0
- illuminate/console ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
Last update
2026/03/27 14:13
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- overtrue/easy-sms ^2.4.2 || ^3.0.0
Last update
2025/03/03 02:35
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
- overtrue/easy-sms ^2.4.2 || ^3.0.0
Last update
2024/12/02 16:49
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0 || ^11.0
- overtrue/easy-sms ^2.4.2 || ^3.0.0
Last update
2024/05/15 16:25
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0 || ^11.0
- overtrue/easy-sms ^2.4.2 || ^3.0.0
Last update
2024/03/18 15:54
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0 || ^11.0
- overtrue/easy-sms ^2.4.2
Last update
2023/03/30 16:14
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0
- overtrue/easy-sms ^2.0.3
Last update
2023/03/13 14:07
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0
- overtrue/easy-sms ^2.0.3
Last update
2023/02/23 15:15
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3 || ^5.0
- illuminate/console ^8.0 || ^9.0 || ^10.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0
- overtrue/easy-sms ^2.0.3
Last update
2023/02/08 16:43
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0 || ^10.0
- illuminate/notifications ^8.0 || ^9.0 || ^10.0
- overtrue/easy-sms ^2.0.3
Last update
2022/12/08 15:28
License
Require
- php ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/10/31 09:04
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/09/03 17:17
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/06/09 17:11
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/04/11 10:07
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/03/21 08:21
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/03/20 10:06
License
Require
- ext-json *
- graham-campbell/manager ^4.3
- overtrue/easy-sms ^2.0.3
- php ^7.3 || ^8.0
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
Last update
2022/03/17 08:28
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/03/17 08:27
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/03/17 08:19
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/03/09 06:31
License
Require
- php ^7.3 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^8.0 || ^9.0
- illuminate/notifications ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/03/02 09:08
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0 || ^9.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/02/21 05:21
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0 || ^9.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/02/17 12:58
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0 || ^9.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/02/07 10:11
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0 || ^9.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2022/01/13 10:09
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0 || ^9.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0 || ^9.0
- overtrue/easy-sms ^2.0.3
Last update
2021/12/06 09:11
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^2.0.3
Last update
2021/11/01 11:53
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^2.0
Last update
2021/10/25 06:09
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/10/21 08:52
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/06/23 04:30
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/04/13 12:26
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/26 08:40
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/15 09:40
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/14 11:09
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/11 10:05
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/07 09:08
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/04 08:53
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/03/01 10:00
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.2
Last update
2021/01/14 09:46
License
Require
- ext-json *
- graham-campbell/manager ^4.3
- php ^7.2 || ^8.0
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms 1.2
Last update
2020/11/25 03:54
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.1
Last update
2020/10/19 09:21
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.1
Last update
2020/09/13 08:30
License
Require
- php ^7.2 || ^8.0
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.1
Last update
2020/08/23 10:23
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.1
Last update
2020/08/05 16:08
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8 || ^7.0 || ^8.0
- illuminate/notifications ^6.8 || ^7.0 || ^8.0
- overtrue/easy-sms ^1.1
Last update
2020/07/23 17:01
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8|^7.0|^8.0
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/07/07 17:13
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8|^7.0|^8.0
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/21 17:56
License
Require
- php ^7.2.5
- ext-json *
- overtrue/easy-sms ^1.1
- illuminate/notifications ^6.8|^7.0|^8.0
- graham-campbell/manager ^4.3
- illuminate/console ^6.8|^7.0|^8.0
Last update
2020/06/20 17:59
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8|^7.0|^8.0
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/20 17:59
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/console ^6.8|^7.0|^8.0
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/18 17:41
License
Require
- php ^7.2.5
- ext-json *
- overtrue/easy-sms ^1.1
- graham-campbell/manager ^4.3
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/06/18 17:41
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/12 19:37
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/09 17:27
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/09 16:27
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/09 16:15
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.3
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/06/01 13:02
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.8|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/28 13:55
License
Require
- php ^7.3
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/28 13:55
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/28 13:55
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/25 04:27
License
Require
- php ^7.3
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/21 09:12
License
Require
- php ^7.3
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/21 09:11
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/21 09:10
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/20 06:45
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/18 08:08
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/15 18:07
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/15 18:07
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/09 14:52
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/05 14:51
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/05/05 11:55
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/30 11:38
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/30 11:38
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/30 07:58
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/24 09:21
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/24 05:02
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/23 05:00
License
Require
- php ^7.2.5
- ext-json *
- graham-campbell/manager ^4.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/22 08:14
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
- overtrue/easy-sms ^1.1
Last update
2020/04/17 06:10
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/15 08:10
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/15 07:56
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/15 07:56
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/13 08:54
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/12 08:57
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/12 08:33
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/10 13:41
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Last update
2020/04/10 13:15
License
Require
- php ^7.2.5
- ext-json *
- ext-simplexml *
- graham-campbell/manager ^4.5
- guzzlehttp/guzzle ^6.5
- illuminate/notifications ^6.0|^7.0|^8.0
Laravel Sms
Laravel Sms is used to notify via sms and send a message.
Thanks
Many thanks to:
-
JetBrains for the excellent PhpStorm IDE and providing me with an open source license to speed up the project development.
Requirement
- PHP >= 7.3
- Composer
ext-json
Installation
Composer
Execute the following command to get the latest version of the package:
composer require zing/laravel-sms
Laravel
Publish Configuration
php artisan vendor:publish --provider "Zing\LaravelSms\SmsServiceProvider"
Add Connections
This package based on overtrue/easy-sms, driver is the gateway.
Usage
Channel
Create a Notification
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;
class Verification extends Notification implements ShouldQueue
{
use Queueable;
protected $code;
/**
* Verification constructor.
*
* @param $code
*/
public function __construct($code)
{
$this->code = $code;
}
public function via()
{
return ['sms'];
}
public function toSms($notifiable)
{
return "验证码 {$this->code},您正在进行身份验证,打死也不要告诉别人哦!";
}
}
Add notification route for sms to your notifiable
use Illuminate\Notifications\Notifiable;
class User
{
use Notifiable;
public function routeNotificationForSms($notification)
{
return $this->phone;
}
}
Send notification
use Illuminate\Support\Facades\Notification;
$user = new User();
// use Notifiable Trait
$user->notify(new Verification('1111'));
// use Notification Facade
Notification::send($user, new Verification('1111'));
Send to anonymous notifiable
use Illuminate\Support\Facades\Notification;
use Zing\LaravelSms\SmsNumber;
use Zing\LaravelSms\Channels\SmsChannel;
// use channel class name
Notification::route(SmsChannel::class, new SmsNumber(18188888888, 86))->notify(new Verification('1111'));
// use channel alias
Notification::route('sms', new SmsNumber(18188888888, 86))->notify(new Verification('1111'));
Facade
Send Message
use Zing\LaravelSms\Facades\Sms;
// use default connection
Sms::send(18188888888, 'test message.');
// use specific connection
Sms::connection('null')->send(18188888888, 'test message.');
// or
Sms::via('null')->send(18188888888, 'test message.');
Specific usage
Use specific connection for notification
NOTE: Only support for Zing\LaravelSms\SmsMessage
use Zing\LaravelSms\SmsMessage;
public function toSms($notifiable)
{
return (new SmsMessage())->onConnection('log');
}
Make PhoneNumber notifiable
NOTE: Only support for Zing\LaravelSms\SmsNumber
use Zing\LaravelSms\SmsNumber;
(new SmsNumber(18188888888))->notify(new Verification('1111'));
License
Laravel Sms is open-sourced software licensed under the MIT license.