Send email & sms
- Php
- Curl
Require this package with composer
composer require ruchirkakkad/communicator
Add service provider to your app/config.php providers array
Picahoo\Communicator\CommunicatorServiceProvider::class,
Add Alias to your aliases array in your app/config.php
'Communicator' => Picahoo\Communicator\Facades\Communicator::class,
Publish config with
php artisan vendor:publish --provider="Picahoo\Communicator\CommunicatorServiceProvider"
load Communicator class in your file
use Communicator;
or
use Picahoo\Communicator\Facades\Communicator;
Communicator::sendEmail('Email address', 'Message..', 'Subject here..');
Communicator::sendSms(['email' => 'Email address','phone' => 'phone number'], 'Message..');