zeynelabidinozkale / netgsm-sms
Netgsm Sms Paketi
1.0.2
2024-08-16 04:34 UTC
README
To use this package, you need to register with Netgsm at https://www.netgsm.com.tr/ and enable PHP API support.
Run this code from the command line:
composer require zeynelabidinozkale/netgsm-sms dev-main
config/app.php
Add the following lines to the config/app.php file:
return array( // ... 'providers' => array( // ... Zeynelabidinozkale\NetgsmSms\SmsServiceProvider::class, ), // ... 'aliases' => array( // ... 'Sms' => Zeynelabidinozkale\NetgsmSms\Facades\SmsFacade::class, ), );
Ayarlar
php artisan vendor:publish
Use the command to publish the config/sms/sms.php file:
sms.php
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
];
#Usage
public function index() { return \Sms::sendsms('Hello World','905051078955'); }