PHP code example of parsidev / melipayamak

1. Go to this page and download the library: Download parsidev/melipayamak library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

parsidev / melipayamak example snippets


"    "parsidev/melipayamak": "5.6.x-dev"
},

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

MeliPayamak::getCredit();

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;


php artisan vendor:publish
config/melipayamak.php