henzard/communicator

There is no license information available for the latest version (1.0.5) of this package.

Communication system for picahoo systems

1.0.5 2018-04-26 14:00 UTC

This package is not auto-updated.

Last update: 2024-05-12 00:42:59 UTC


README

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..');