PHPackages                             macellan/ttmesaj - 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. macellan/ttmesaj

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

macellan/ttmesaj
================

TTMesaj notification channel for Laravel

v1.1.0(3y ago)4971MITPHPPHP &gt;=7.2CI failing

Since Feb 25Pushed 3y ago8 watchersCompare

[ Source](https://github.com/macellan/ttmesaj)[ Packagist](https://packagist.org/packages/macellan/ttmesaj)[ Docs](http://macellan.net/)[ RSS](/packages/macellan-ttmesaj/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (7)Dependencies (4)Versions (9)Used By (0)

TTMesaj Notifications Channel for Laravel
=========================================

[](#ttmesaj-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2f6d1c30e010f24d6262028bf43dfb0f3a316f1d61c55f31b26634d26b75766a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6163656c6c616e2f74746d6573616a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/macellan/ttmesaj)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/315e15fbd1d4fdd7cf86867d64ab308237e289309ea7219ba5b0f8812ccbb987/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6163656c6c616e2f74746d6573616a2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/macellan/ttmesaj)[![Total Downloads](https://camo.githubusercontent.com/6501ded3a2edc30bc37da9ff05767d1f0a49640192db1192f96a1b55d9b7df8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6163656c6c616e2f74746d6573616a2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/macellan/ttmesaj)

This package makes it easy to send notifications using [TTMesaj](https://ttmesaj.com) with Laravel 5.5+ and 6.0

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the TTmesaj service](#setting-up-the-TTMesaj-service)
- [Usage](#usage)
    - [ On-Demand Notifications](#on-demand-notifications)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require macellan/ttmesaj
```

### Setting up the TTMesaj service

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

Add your TTMesaj sms gate login, password and default sender name to your config/services.php:

```
// config/services.php
...
    'ttmesaj' => [
        'wsdlEndpoint' => env('TTMESAJ_WSDL_ENDPOINT', 'https://ws.ttmesaj.com/Service1.asmx?WSDL'),
        'username' => env('TTMESAJ_USERNAME'),
        'password' => env('TTMESAJ_PASSWORD'),
        'origin' => env('TTMESAJ_ORIGIN'),
        'enable' => env('TTMESAJ_ENABLE', true),
        'debug' => env('TTMESAJ_DEBUG', false), //will log sending attempts and results
        'sandboxMode' => env('TTMESAJ_SANDBOX_MODE', false) //will not invoke API call
    ],
...
```

Usage
-----

[](#usage)

You can use the channel in your via() method inside the notification:

```
use Carbon\Carbon;
use Illuminate\Notifications\Notification;
use Macellan\TTMesaj\TTMesajMessage;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return ['ttmesaj'];
    }

    public function toTTMesaj($notifiable)
    {
        return TTMesajMessage::create()
            ->setBody('Your account was approved!')
            ->setSendTime(Carbon::now())
            ->setEndTime(Carbon::now()->addDay());
    }
}
```

In your notifiable model, make sure to include a routeNotificationForTTMesaj() method, which returns a phone number or an array of phone numbers.

```
public function routeNotificationForTTMesaj()
{
    return str_replace(['+', ' '], '', $this->phone);
}
```

### On-Demand Notifications

[](#on-demand-notifications)

Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification:

```
Notification::route('ttmesaj', '905322234433')
            ->notify(new AccountApproved());
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Fatih Aytekin](https://github.com/faytekin)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~176 days

Recently: every ~259 days

Total

7

Last Release

1215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fea6ab8454f28af0ac4265b6f7dcbb97c4881dd978aaabd9fa49be0767db4b24?d=identicon)[aytekin](/maintainers/aytekin)

![](https://www.gravatar.com/avatar/1f4b3832b769a6cbd136895170c0befd945d09ea66a182c80313444360221673?d=identicon)[burakcalik](/maintainers/burakcalik)

---

Top Contributors

[![faytekin](https://avatars.githubusercontent.com/u/4013224?v=4)](https://github.com/faytekin "faytekin (20 commits)")

---

Tags

laravelnotificationsttmesaj-notifications-channel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/macellan-ttmesaj/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)

PHPackages © 2026

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