PHP code example of zeynelabidinozkale / netgsm-sms

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

    

zeynelabidinozkale / netgsm-sms example snippets


return array(
    // ...

    'providers' => array(
        // ...

        Zeynelabidinozkale\NetgsmSms\SmsServiceProvider::class,
    ),

    // ...

    'aliases' => array(
        // ...

        'Sms' => Zeynelabidinozkale\NetgsmSms\Facades\SmsFacade::class,
    ),
);

public function index()
{
    return \Sms::sendsms('Hello World','905051078955');
}
config/app.php
code
php artisan vendor:publish
code
return [
    "usercode"  => "Your Netgsm Username",
    "password"  => "Your Netgsm Password",
    "startdate" => "",
    "stopdate"  => "",
    "type"      => "1:n",
    "msgheader" => "Your Approved SMS Header in Netgsm PHP API",
    "tr"        => false, // true sends with Turkish characters, false sends without Turkish characters
];