PHPackages                             ramanandapanda/jsksms - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ramanandapanda/jsksms

ActiveProject[Templating &amp; Views](/categories/templating)

ramanandapanda/jsksms
=====================

SMS notification channel JSKSMS

2.1.0(4y ago)013MITPHPPHP &gt;=7.1

Since Mar 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ramanandapanda/jsksms)[ Packagist](https://packagist.org/packages/ramanandapanda/jsksms)[ RSS](/packages/ramanandapanda-jsksms/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

jsksms Notifications Channel for Laravel
========================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/4be3a6890f19238aeb933e416bf208a74bcc49c86c019b66031e399aa6dae535/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72616d616e616e646170616e64612f6a736b736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ramanandapanda/jsksms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/77d17f4768de3e5a4bbd12bd580d56953140f7ff89fabab0cd501dd88b0435c3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72616d616e616e646170616e64612f6a736b736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ramanandapanda/jsksms)[![StyleCI](https://camo.githubusercontent.com/06d330f8e27b784f1f159fd6acbcce702ee8030ad4eb00b55f0e03f2ccf3dc57/68747470733a2f2f7374796c6563692e696f2f7265706f732f3232393832323437352f736869656c64)](https://styleci.io/repos/:style_ci_id)[![Quality Score](https://camo.githubusercontent.com/95bce141b9b921f9cd46f03d0b112a0db642bb28081d39679d54ae3e4077c1ef/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72616d616e616e646170616e64612f6a736b736d732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ramanandapanda/jsksms)[![Code Coverage](https://camo.githubusercontent.com/36321cdfb667e7adedce025887a34616f021179d9037a962cebb66d7a8c760b2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72616d616e616e646170616e64612f6a736b736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ramanandapanda/jsksms/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/aab576bd99956831e865e45bcd45786eb914bfec1948e49239c16765c28b0339/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72616d616e616e646170616e64612f6a736b736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ramanandapanda/jsksms)

This package makes it easy to send notifications using [jsksms](https://jsksms.com/) with Laravel 5.5+, 6.x, 7.x and 8.x

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the jsksms](#setting-up-the-jsksms-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
    - [ 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 ramanandapanda/jsksms
```

### Setting up the jsksms service

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

Add your jsksms token, default sender name (or phone number) to your config/services.php:

```
// config/services.php
...
'jsksms' => [
    'endpoint' => env('jsksms_ENDPOINT', 'https://jsksms.com/api/v2/send'),
    'token' => env('jsksms_TOKEN', 'YOUR jsksms TOKEN HERE'),
    'sender' => env('jsksms_SENDER', 'YOUR jsksms SENDER HERE')
],
...
```

Usage
-----

[](#usage)

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

```
use Illuminate\Notifications\Notification;
use NotificationChannels\jsksms\JsksmsMessage;

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

    public function tojsksms($notifiable)
    {
        return (new JsksmsMessage)->content("Your account was approved!");
    }
}
```

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

```
public function routeNotificationForjsksms()
{
    return $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('jsksms', '5555555555')
            ->notify(new InvoicePaid($invoice));
```

### Available Message methods

[](#available-message-methods)

`sender()`: Sets the sender's name. *Make sure to register the sender name at you jsksms dashboard.*

`content()`: Set a content of the notification message. This parameter should be no longer than 918 char(6 message parts),

`test()`: Send a test message to specific mobile number or not. This parameter should be boolean and default value is `true`.

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 use the issue tracker.

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Tint Naing Win](https://github.com/tintnaingwinn)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~0 days

Total

2

Last Release

1562d ago

### Community

Maintainers

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

---

Top Contributors

[![rp01](https://avatars.githubusercontent.com/u/6177511?v=4)](https://github.com/rp01 "rp01 (14 commits)")

---

Tags

composerpackagetemplate

### Embed Badge

![Health badge](/badges/ramanandapanda-jsksms/health.svg)

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

PHPackages © 2026

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