PHP code example of salihkiraz / netgsm

1. Go to this page and download the library: Download salihkiraz/netgsm 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/ */

    

salihkiraz / netgsm example snippets


php artisan vendor:publish 

Config/netgsm.php içinde sisteme giriş yaparken kullandığınız bilgileri giriniz.

    $new = new \salihkiraz\Netgsm\Sms();
    $new->message('deneme mesaj');
    $new->phone('0123456789');
    return $new->send();

$new = new \salihkiraz\Netgsm\Santral();
return $new->dateQuery();

$new = new \salihkiraz\Netgsm\Santral();
$new->startDate(250820170000);
$new->stopDate(270820172359);
return $new->dateQuery();

$new = new \salihkiraz\Netgsm\Santral();
$new->phone(123456789);
$new->phone(987654321);
return $new->sendQuery();

$new = new \salihkiraz\Netgsm\Santral();
$new->uniqId(123456789);
$new->uniqId(987654321);
return $new->sendQuery();

 $new = new \salihkiraz\Netgsm\Sms();
 $new->rapor("236859926");