Skip to content

ruchirkakkad/communicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Communicator

Send email & sms

Requirements

  • Php
  • Curl

Installation

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"

How to use

load Communicator class in your file

use Communicator;

or

use Picahoo\Communicator\Facades\Communicator;

Send email

    Communicator::sendEmail('Email address', 'Message..', 'Subject here..');    

Send sms

    Communicator::sendSms(['email' => 'Email address','phone' => 'phone number'], 'Message..');