henzard / communicator
此包的最新版本(1.0.5)没有可用的许可信息。
picahoo系统的通信系统
1.0.5
2018-04-26 14:00 UTC
Requires
- php: ^5.5.9 || ^7.0
- laravel/framework: 5.1.* || 5.2.* || 5.3.* || 5.4.*
This package is not auto-updated.
Last update: 2024-09-29 02:39:27 UTC
README
发送电子邮件 & 短信
需求
- Php
- Curl
安装
使用composer安装此包
composer require ruchirkakkad/communicator
将服务提供者添加到您的app/config.php providers数组中
Picahoo\Communicator\CommunicatorServiceProvider::class,
将别名添加到您的app/config.php中的aliases数组中
'Communicator' => Picahoo\Communicator\Facades\Communicator::class,
使用以下命令发布配置
php artisan vendor:publish --provider="Picahoo\Communicator\CommunicatorServiceProvider"
使用方法
在您的文件中加载Communicator类
use Communicator;
或
use Picahoo\Communicator\Facades\Communicator;
发送电子邮件
Communicator::sendEmail('Email address', 'Message..', 'Subject here..');
发送短信
Communicator::sendSms(['email' => 'Email address','phone' => 'phone number'], 'Message..');