ghasedak/laravel

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

Iranin sms webapi

dev-master 2018-08-28 11:56 UTC

README

ghasedak for php

Ghasedak sms webservice package for php.

install

The easiest way to install Behat is by using Composer:

composer require ghasedak/laravel:"dev-master"

usage

Add the Ghasedak\Laravel\ServiceProvider provider to the providers array in config/app.php:

'providers' => [
  ...
  Ghasedak\GhasedakServiceProvider,
],

Then add the facade to your aliases array:

'aliases' => [
  ...
  'Ghasedak' =>   Ghasedak\GhasedakFacade::class,
],

You need a Ghasedak account. Register and get your API key.

Create an instance from Ghasedak class with your API key:

$api = new \Ghasedak\GhasedakApi( env(GHASEDAKAPI_KEY));

Send some sms:

api.SendSimple( 
	  "09xxxxxxxxx",
      "Hello World!"
 );

:)