2017 © Pedro PelĂĄez
 

library netgsm

NetGsm Sms Entegrasyonu

image

vomsis/netgsm

NetGsm Sms Entegrasyonu

  • Sunday, February 18, 2018
  • by vomsis
  • Repository
  • 1 Watchers
  • 1 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 30 % Grown

The README.md

Netgsm Laravel Package

Installation

Install package with composer, (*1)

composer require vomsis/netgsm

In Laravel 5.5+ package will auto discovery., (*2)

 Optional Steps for Laravel 5.4-

Add package provider to config/app.php file, (*3)

'providers' => [
    Vomsis\Netgsm\NetgsmServiceProvider::class,
]

Add alias to config/app.php file, (*4)

'aliases' => [
    'Netgsm' => Vomsis\Netgsm\NetgsmFacade::class,
]

 Configuration

Add Netgsm API information to .env file, (*5)

NETGSM_URL=https://api.netgsm.com.tr
NETGSM_USERNAME=
NETGSM_PASSWORD=
NETGSM_HEADER=

NETGSM_URL is API base url of netgsm. NETGSM_USERNAME and NETGSM_PASSWORD is authentication information of netgsm. NETGSM_HEADER is default header of sms messages., (*6)

You can also publish config file., (*7)

php artisan vendor:publish --provider="Vomsis\Netgsm\NetgsmServiceProvider"

Usage

Send sms to one number, (*8)

Netgsm::sendSms("50xxxxxxxx", "Message content");

You can also specify options. Like header and startDate, (*9)

Netgsm::sendSms($number, $message, $header = null, $startDate = null, $endDate = null, $lang = null);

Send sms to multiple numbers, (*10)

Netgsm::sendSms(["50xxxxxxxx", "50xxxxxxxx"], "Message Content");

License

This project is open-sourced software licensed under the MIT license., (*11)

The Versions

18/02 2018

dev-master

9999999-dev

NetGsm Sms Entegrasyonu

  Sources   Download

MIT

The Requires

 

by Ramazan Uç

18/02 2018

1.0

1.0.0.0

NetGsm Sms Entegrasyonu

  Sources   Download

MIT

The Requires

 

by Ramazan Uç