lbhurtado/simple-txtcmdr-drivers

Additional providers for Simple-SMS Laravel package

0.1.2 2016-05-07 01:42 UTC

This package is auto-updated.

Last update: 2024-11-18 03:11:22 UTC


README

Additional providers for Simple-SMS Laravel package

Installation

composer require "lbhurtado/simple-txtcmdr-drivers: dev-master"

Instead of original simple sms service provider, set our:

'providers' => [
  ...
  LBHurtado\SMS\SMSServiceProvider::class
]

Set original simple sms alias:

'aliases' => [
  ...
  'SMS' => SimpleSoftwareIO\SMS\Facades\SMS::class

Autoload Telerivet API in composer.json:

autoload: {
	classmap: [
		database,
		vendor/telerivet/telerivet-php-client/telerivet.php
	],
	...
composer dumpautoload -o

Publish original simple sms config:

php artisan vendor:publish

Set up sms drivers in config/sms.php file:

'telerivet' => [
    'api_key'    => env('TELERIVET_API_KEY'),
    'project_id' => env('TELERIVET_PROJECT_ID')
],
'sun' => [
    'user' => env('SUN_USER'),
    'pass' => env('SUN_PASS'),
    'mask' => env('SUN_MASK'),
    'login_url' => 'http://mcpro.sun-solutions.ph/emcpro/login.aspx'
],

Usage

See original documentation