2017 © Pedro Peláez
 

library melipayamak

package for send sms with laravel5.4 (published for melipayamak.com)

image

parsidev/melipayamak

package for send sms with laravel5.4 (published for melipayamak.com)

  • Tuesday, March 13, 2018
  • by parsidev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 15 % Grown

The README.md

laravelSms

package for send sms with laravel5.1 (published for melipayamak.com) this package only work for iranian mobile operator, (*1)

installation

For install this package Edit your project's composer.json file to require parsidev/melipayamak, (*2)

"require": {
    "parsidev/melipayamak": "dev-master"
},

Now, update Composer:, (*3)

composer update

Once composer is finished, you need to add the service provider. Open config/app.php, and add a new item to the providers array., (*4)

'Parsidev\MeliPayamak\MeliPayamakServiceProvider',

Next, add a Facade for more convenient usage. In config/app.php add the following line to the aliases array:, (*5)

'MeliPayamak' => 'Parsidev\MeliPayamak\Facades\MeliPayamak',

Publish config files:, (*6)

php artisan vendor:publish

for change username, password and other configuration change config/melipayamak.php, (*7)

Usage

for use this package, please register on melipayamak.com, (*8)

Send Message

MeliPayamak::sendSMS('Recieptor number', 'text message'); // send normal message for a person

MeliPayamak::sendSMS(array('Recieptor number1', 'Recieptor number2'), 'text mesage'); // send normal message for persons

//---------------------------------------
$url   = 'www.google.com'; // Doesn't need http://
$title = 'Google Search Engine';
MeliPayamak::sendSMS('Recieptor number', "\n".$title."\n".$url, 'wap'); // send wap push message for a person

//---------------------------------------

MeliPayamak::sendSMS('Recieptor number', 'text message', 'flash'); // send flash message for a person

Get Credit

MeliPayamak::getCredit();

Get Status

MeliPayamak::getStatus('unique id'); // get status of sent message, you receive unique id from sendSMS function.


$response = MeliPayamak::sendSMS('Recieptor number', 'text message');

$uniqeId = $response[0]->uid;

The Versions

13/03 2018

5.6.x-dev

5.6.9999999.9999999-dev

package for send sms with laravel5.4 (published for melipayamak.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

30/09 2017

5.5.x-dev

5.5.9999999.9999999-dev

package for send sms with laravel5.4 (published for melipayamak.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

21/07 2017

5.4.x-dev

5.4.9999999.9999999-dev

package for send sms with laravel5.4 (published for melipayamak.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

21/07 2017

dev-master

9999999-dev

package for send sms with laravel5.1 (published for melipayamak.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza