PHPackages                             laravel-notification-channels/jet-sms - 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. laravel-notification-channels/jet-sms

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

laravel-notification-channels/jet-sms
=====================================

Sends SMS using JetSms API

4.0.0(6y ago)91.5k5[2 issues](https://github.com/laravel-notification-channels/jet-sms/issues)MITPHPPHP &gt;=7.2

Since Nov 22Pushed 6y ago3 watchersCompare

[ Source](https://github.com/laravel-notification-channels/jet-sms)[ Packagist](https://packagist.org/packages/laravel-notification-channels/jet-sms)[ Docs](https://github.com/laravel-notification-channels/jet-sms)[ RSS](/packages/laravel-notification-channels-jet-sms/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (10)Used By (0)

JetSms Notification Channel For Laravel 5.3+
============================================

[](#jetsms-notification-channel-for-laravel-53)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cf1ee8b07850f255d613cb9107e98702dca0dd588e1779e091db0c38a370b3cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6a65742d736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/jet-sms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/256d28f31af971d1fb732ac0ce2914fdcd0eed677970aecff05a8b4292f0525d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6a65742d736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/jet-sms)[![StyleCI](https://camo.githubusercontent.com/004449f174d6b465107722501a64b016bf344acd1375755c8783abb2970dd179/68747470733a2f2f7374796c6563692e696f2f7265706f732f37343330343434302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/74304440)[![Quality Score](https://camo.githubusercontent.com/482f3946a7e4d426e0b89494b7dfb7018a11bd87dc0acfc06f5979fceae50d87/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6a65742d736d732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/jet-sms)[![Code Coverage](https://camo.githubusercontent.com/017a0362873d634d7cdd86f18a15a391726167c6dca4618ec70ccb59ffac980c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6a65742d736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/jet-sms/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/49045e932f3ced0e5b0c45457ec4ae0a21b02b102ef2324e9c537d379c586048/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6a65742d736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/jet-sms)

This package makes it easy to send notifications using [JetSms](http://www.jetsms.net) with Laravel 5.5+, 6.x and 7.x.

Contents
--------

[](#contents)

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

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

[](#installation)

You can install this package via composer:

```
composer require laravel-notification-channels/jet-sms
```

### Setting up the JetSms service

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

Add your desired client, username, password, originator (outbox name, sender name) and request timeout configuration to your `config/services.php` file:

```
...
    'JetSms' => [
        'client'     => 'http', // or xml
        'http'       => [
            'endpoint' => 'https://service.jetsms.com.tr/SMS-Web/HttpSmsSend',
        ],
        'xml'        => [
            'endpoint' => 'www.biotekno.biz:8080/SMS-Web/xmlsms',
        ],
        'username'   => '',
        'password'   => '',
        'originator' => "", // Sender name.
        'timeout'    => 60,
    ],
...
```

Usage
-----

[](#usage)

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

```
use NotificationChannels\JetSms\JetSmsChannel;
use NotificationChannels\JetSms\JetSmsMessage;

class ResetPasswordWasRequested extends Notification
{
    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return [JetSmsChannel::class];
    }

    /**
     * Get the JetSms representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return string|\NotificationChannels\JetSms\JetSmsMessage
     */
    public function toJetSms($notifiable) {
        return "Test notification";
        // Or
        return new ShortMessage($notifiable->phone_number, 'Test notification');
    }
}
```

Don't forget to place the dedicated method for JetSms inside your notifiables. (e.g. User)

```
class User extends Authenticatable
{
    use Notifiable;

    public function routeNotificationForJetSms()
    {
        return "905123456789";
    }
}
```

### Available methods

[](#available-methods)

JetSms can also be used directly to send short messages.

Examples:

```
JetSms::sendShortMessage($to, $message);
JetSms::sendShortMessages([[
    'recipient' => $to,
    'message'   => $message,
], [
    'recipient' => $anotherTo,
    'message'   => $anotherMessage,
]]);
```

see: [jet-sms-php](https://github.com/erdemkeren/jet-sms-php) documentation for more information.

### Available events

[](#available-events)

JetSms Notification channel comes with handy events which provides the required information about the SMS messages.

1. **Message Was Sent** (`NotificationChannels\JetSms\Events\MessageWasSent`)
2. **Messages Were Sent** (`NotificationChannels\JetSms\Events\MessageWasSent`)
3. **Sending Message** (`NotificationChannels\JetSms\Events\SendingMessage`)
4. **Sending Messages** (`NotificationChannels\JetSms\Events\SendingMessages`)

Example:

```
namespace App\Listeners;

use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use NotificationChannels\JetSms\Events\MessageWasSent;

class SentMessageHandler
{
    /**
     * Handle the event.
     *
     * @param  MessageWasSent  $event
     * @return void
     */
    public function handle(MessageWasSent $event)
    {
        $response = $event->response;
        $message = $event->message;
    }
}
```

### Notes

[](#notes)

$response-&gt;groupId() will throw BadMethodCallException if the client is set to 'http'. $response-&gt;messageReportIdentifiers() will throw BadMethodCallException if the client is set to 'xml'.

change client configuration with caution.

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)

- [Hilmi Erdem KEREN](https://github.com/erdemkeren)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% 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 ~171 days

Recently: every ~184 days

Total

8

Last Release

2258d ago

Major Versions

v1.0.1 → 2.0.0-beta2018-02-28

2.0.2 → 3.0.02019-10-07

3.0.0 → 4.0.02020-03-07

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.4

3.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

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

---

Top Contributors

[![erdemkeren](https://avatars.githubusercontent.com/u/1636960?v=4)](https://github.com/erdemkeren "erdemkeren (24 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (4 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (2 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (1 commits)")

---

Tags

jetsms-notifications-channellaravellaravel-5-packagenotifications

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-jet-sms/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-notification-channels-jet-sms/health.svg)](https://phpackages.com/packages/laravel-notification-channels-jet-sms)
```

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

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

Telegram Notifications Channel for Laravel

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

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[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)

PHPackages © 2026

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