PHPackages                             tcgunel/netgsm - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tcgunel/netgsm

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tcgunel/netgsm
==============

Laravel Netgsm channel entegrasyonu.

v3.0.4(1y ago)93.1k↓50%MITPHPPHP ^8.0CI failing

Since Jan 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/tcgunel/netgsm)[ Packagist](https://packagist.org/packages/tcgunel/netgsm)[ RSS](/packages/tcgunel-netgsm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (29)Used By (0)

[![License](https://camo.githubusercontent.com/8e171ea180b763cb2d72951b1d871b64d26249a712f0fac7abd52f9f8818898a/68747470733a2f2f706f7365722e707567782e6f72672f746367756e656c2f6e657467736d2f6c6963656e7365)](https://packagist.org/packages/tcgunel/netgsm)[![Buy us a tree](https://camo.githubusercontent.com/130148911f548b001b2ac68a32c0a06559977ca60ada3bf480c72ae4ea093175/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e)](https://plant.treeware.earth/tcgunel/netgsm)[![PHP Composer](https://github.com/tcgunel/netgsm/actions/workflows/tests.yml/badge.svg)](https://github.com/tcgunel/netgsm/actions/workflows/tests.yml)

Laravel Netgsm Channel Entegrasyonu (Laravel 7.x|8.x|9.x|10.x)
==============================================================

[](#laravel-netgsm-channel-entegrasyonu-laravel-7x8x9x10x)

Netgsm hizmetlerini laravel ile kolay ve hızlıca kullanmaya başlamak için geliştirilen bir paket. Netgsm tarafından sunulan tüm metodları (XML POST ve HTTP GET) destekleyecek şekilde hazırlanmıştır.

Şimdilik sadece SMS hizmetleri için geliştirme yapılıyor diğer hizmetler için de gerekli oldukça geliştirme yapılacaktır.

### SMS Yapılacaklar Listesi

[](#sms-yapılacaklar-listesi)

- SMS Gönderimi
- SMS İptali
- SMS Sorgulama
- OTP SMS
- Flash SMS
- Gelen SMS
- Gönderici Adı Sorgulama
- Karakter Hesaplama
- İzinli / Kara liste

### Hesap Apileri Yapılacaklar Listesi

[](#hesap-apileri-yapılacaklar-listesi)

- Kredi Sorgulama
- Paket Kampanya Sorgulama

Requirements
------------

[](#requirements)

PHPLaravelPackage^7.4-^8.0^7-^8-^9v1^8.0^8-^9-^10v3Kurulum
-------

[](#kurulum)

1. Paket indirin:

```
composer require TCGunel/netgsm

```

2. Opsiyonel olarak config dosyasını çekebilirsiniz:

```
php artisan vendor:publish --tag=netgsm-config

```

Aşağıdaki ayarlar yapılabilmektedir;

- (string) username =&gt; Genel olarak kullanmak istenilen hesabın kullanıcı adı bilgisi.
- (string) password =&gt; Genel olarak kullanmak istenilen hesabın şifre bilgisi.
- (bool) log =&gt; Loglama işlemini aktif et, api ile yapılan her işlemi kayıt altına alır.
- (string) service =&gt; Xml veya http.
- (bool) encoding =&gt; Türkçe desteği açıp kapat. Gönderilen SMS'lerdeki karakter hesabı bu ayara göre değişebilir. [Referans](https://www.netgsm.com.tr/dokuman/#soap-servisi-sms-g%C3%B6nderme)
- (string) header =&gt; Varsa mesaj başlık bilgisi, girilmezse username için girilen numara kullanılır.
- (string) filter =&gt; İzinli data filtrenizi uygulamak isterseniz '1' olarak gönderebilirsiniz. [Referans](https://www.netgsm.com.tr/dokuman/#soap-servisi-sms-g%C3%B6nderme)
- (string) bayikodu =&gt; Bayilik kodunuz varsa.

3. Loglama aktif olduğunda gerekli migration dosyasını publish etmek için,

```
php artisan vendor:publish --provider="TCGunel\Netgsm\NetgsmServiceProvider" --tag="migrations"

```

Lumen compatibility
-------------------

[](#lumen-compatibility)

Lumen ile test edilmemiştir.

Sms Gönderim Örnekleri
======================

[](#sms-gönderim-örnekleri)

**1:n Gönderim**

```
    $sms = new \TCGunel\Netgsm\SendSms\SendSms();

    $sms->setMsg('MESAJ İÇERİĞİ');

    // Tek numaraya gönder.
    $sms

        ->setMsg('MESAJ İÇERİĞİ'); // Mesaj İçeriği

        ->setGsm(5554443322)

         //->setGsm([5554443322, 1112223322]);  // Birden fazla numaraya gönder. Son çağırılan setGsm değerleri kullanılır.

         //->setEncoding('1');  // Opsiyonel. Boş string TR destek kapat veya '1' ile aç.

         //->setStartdate('011220210100');  // Opsiyonel. ddMMyyyyHHmm formatında gönderme tarihi.

         //->setStopdate('011220212359');  // Opsiyonel. ddMMyyyyHHmm iki tarih arası gönderimlerde bitiş tarihi.

         //->setBayikodu('?');  // Opsiyonel. Bayi üyesi ise bayiye ait kod.

         //->setFilter('1');  // Opsiyonel. Dolu gönderilirse netgsm filtreniz uygulanarak yasaklı numaralara gönderim yapılmaz.

         //->setUsername('800800800');  // Opsiyonel. Gönderimi farklı bir hesap ile yapmak için.

         //->setPassword('*********');  // Opsiyonel. Gönderimi farklı bir hesap ile yapmak için.

    $sms->execute();

```

**n:n Gönderim**

Bir defada her numaraya kendi mesajını gönderebilmek için kullanılır.

```
->setMsg(['Mesaj 1', 'Mesaj 2', 'Mesaj 3']); // Mesaj içerikleri

->setGsm([5554443322, 4443332211, 3332221100])

```

Kredi Sorgulama
===============

[](#kredi-sorgulama)

```
$creditQuery = new CreditQuery();

$creditQuery

    ->setUsername('800800800') // Opsiyonel.

    ->setPassword('*********'); // Opsiyonel.

$creditQuery->execute();

$creditQuery->result; // String olarak TL bakiye barındırır. E.g. 150,77

```

Paket Sorgulama
===============

[](#paket-sorgulama)

```
$packageCampaignQuery = new PackageCampaignQuery();

$packageCampaignQuery

    ->setUsername('800800800') // Opsiyonel.

    ->setPassword('*********'); // Opsiyonel.

$packageCampaignQuery->execute();

$packageCampaignQuery->result; // Hesaba bağlı tüm paket bilgisini array[] olarak barındırır.

```

Test
----

[](#test)

```
composer test

```

For windows:

```
vendor\bin\paratest.bat

```

Authors
-------

[](#authors)

- [**Tolga Can GÜNEL**](https://github.com/tcgunel) - *Altyapı ve proje başlangıcı*

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Treeware
--------

[](#treeware)

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/tcgunel/netgsm) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance48

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 55.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Recently: every ~94 days

Total

28

Last Release

384d ago

Major Versions

v0.0.9 → v1.0.02021-02-19

v1.0.0 → v2.0.02021-02-19

v1.0.1 → v2.0.12021-02-19

v1.0.3 → v2.0.22021-02-26

v1.1.1 → v3.0.02024-04-19

PHP version history (7 changes)v0.0.2PHP ^7.2.5|^8.0

v1.0.0PHP ^7.2.5 || ^8.0

v1.0.1PHP ^7.2 || ^8.0

v2.0.1PHP ^7.3 || ^8.0

v1.0.7PHP ^7.4|^8.0

v1.0.8PHP ^7.3|^8.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/36dffe883e88aeef07c26067af3d6a7eda1c2a81f1ae45fdd430b721665131da?d=identicon)[Mobius Studio](/maintainers/Mobius%20Studio)

---

Top Contributors

[![tcgunel](https://avatars.githubusercontent.com/u/3923425?v=4)](https://github.com/tcgunel "tcgunel (16 commits)")[![tolgaCTRLF5](https://avatars.githubusercontent.com/u/33447585?v=4)](https://github.com/tolgaCTRLF5 "tolgaCTRLF5 (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tcgunel-netgsm/health.svg)

```
[![Health](https://phpackages.com/badges/tcgunel-netgsm/health.svg)](https://phpackages.com/packages/tcgunel-netgsm)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
