2017 © Pedro Peláez
 

library laravel-unifonic

Package to use Unifonic API

image

zizou86/laravel-unifonic

Package to use Unifonic API

  • Friday, August 18, 2017
  • by zizou86
  • Repository
  • 1 Watchers
  • 2 Stars
  • 663 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 42 % Grown

The README.md

Laravel-Unifonic

Start send sms with Unifonic right away using your favorite PHP framework., (*1)

Installation

composer require zizou86/laravel-unifonic., (*2)

Add the service provider to your config/app.php:, (*3)

``` 'providers' => [, (*4)

 Zizou86\Unifonic\UnifonicServiceProvider::class,

], ```, (*5)

...run php artisan vendor:publish to copy the config file., (*6)

Edit the config/unifonic.php or add Unifonic app id in your .env file, (*7)

UNIFONIC_APPS_ID={YOUR_DEFAULT_APP_ID}

Add the alias to your config/app.php:, (*8)

'aliases' => [

    'Unifonic' => Zizou86\Unifonic\Unifonic::class,

],

Usage

Please refer to the Api Documentation for more info, or read the docblocks !, (*9)

use Zizou86\Unifonic\Unifonic;

// messages API methods
Unifonic::send(int $recipient,string $message);
Unifonic::sendBulk(array $recipient, string $message);
Unifonic::getMessageIDStatus(int $messageId);
Unifonic::getBalance();

If you use many apps id, you can do this :, (*10)

use Zizou86\Unifonic\Unifonic;

$sms = new App('second');

The key 'second' will be defined in your config/unifonic.php, (*11)


'appsid' => [ 'default' => env('UNIFONIC_APPS_ID', ''), 'second' => env('UNIFONIC_SECOND_APPS_ID', '') ],

The Versions

18/08 2017

dev-master

9999999-dev

Package to use Unifonic API

  Sources   Download

MIT

The Requires

 

by Aziz Trabelsi

laravel api unifonic

18/08 2017

dev-dev

dev-dev

Package to use Unifonic API

  Sources   Download

MIT

The Requires

 

by Aziz Trabelsi

laravel api unifonic

18/08 2017

v1.2

1.2.0.0

Package to use Unifonic API

  Sources   Download

MIT

The Requires

 

by Aziz Trabelsi

laravel api unifonic

17/08 2017

v1.1

1.1.0.0

Package to use Unifonic API

  Sources   Download

MIT

The Requires

 

by Aziz Trabelsi

laravel api unifonic