PHPackages                             clevel/netgsm-notification-channel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. clevel/netgsm-notification-channel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

clevel/netgsm-notification-channel
==================================

NetGSM Provider for Laravel Notification Channels

1.0.1(5y ago)294MITPHPPHP &gt;=7.2

Since Dec 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bsormagec/netgsm)[ Packagist](https://packagist.org/packages/clevel/netgsm-notification-channel)[ Docs](https://github.com/laravel-notification-channels/netgsm)[ RSS](/packages/clevel-netgsm-notification-channel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Notification Channels - Netgsm SMS Gateway Package
==========================================================

[](#laravel-notification-channels---netgsm-sms-gateway-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9595913d1e4a69ed263c59c3cc8450f4e4fec1c7db2b667c9ae2a6dc95fff19d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6e657467736d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/netgsm)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ef2b6a5bbe0c07796bd5687c1f7648a0e2da0514f42f39371c40c9c9bef92599/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6e657467736d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/netgsm)[![StyleCI](https://camo.githubusercontent.com/768a6041e6d9e1d5da89e64c3e785631240f2736770dfa68d509c42a321135da/68747470733a2f2f7374796c6563692e696f2f7265706f732f3a7374796c655f63695f69642f736869656c64)](https://styleci.io/repos/:style_ci_id)[![SensioLabsInsight](https://camo.githubusercontent.com/7a395d7551140767a9f38f838e0e96b367bae56234402374185cd65ee8d795a1/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f3a73656e73696f5f6c6162735f69642e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/:sensio_labs_id)[![Quality Score](https://camo.githubusercontent.com/4ceaffa86c0516a22c467fbf53a0288ecbe88b066de01693ce49195f35fc0fba/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6e657467736d2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/netgsm)[![Code Coverage](https://camo.githubusercontent.com/bde4bfb7642fdfa1ab6eaadba3f6baf69cde0a66249bd01ec8b157fb2c8bfc9d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6e657467736d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/netgsm/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/87ece8d5147ffd2c047b35e70bb386b4dae11a9d16fe468d8c299d70a7af1404/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6e657467736d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/netgsm)

This package makes it easy to send notifications using [Netgsm](http://www.netgsm.com.tr) with Laravel 5.5+, 6.x and 7.x

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Netgsm service](#setting-up-the-Netgsm-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

This package can be installed via composer:

`composer require laravel-notification-channels/netgsm`

### Setting up the NetGSM service

[](#setting-up-the-netgsm-service)

1. Create an account and get the API key [here](https://www.netgsm.com.tr)
2. Add credentials to `.env` file:

    ```
       NETGSM_USERCODE="NETGSM_PHONE"
       NETGSM_PASSWORD="PASSWORD"
       NETGSM_HEADER="SENDER_ID"
       NETGSM_LANGUAGE="LANGUAGE (tr,en)"

    ```

Usage
-----

[](#usage)

You can use this channel by adding `NetgsmChannel::class` to the array in the `via()` method of your notification class. You need to add the `toNetgsm()` method which should return a `NetgsmMessage()` object.

```
