PHPackages                             ringlesoft/jasmin-client - 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. ringlesoft/jasmin-client

ActiveLaravel-plugin

ringlesoft/jasmin-client
========================

A laravel package for interacting with Jasmin SMS Gateway

1.0.0(1y ago)1571MITPHPPHP &gt;=8.1

Since Sep 15Pushed 1y ago1 watchersCompare

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

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

Jasmin SMS Gateway Client for Laravel
=====================================

[](#jasmin-sms-gateway-client-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ad6fe265a93a44341b448806f6f8c370e8eb3e0f63ea428697e7f03540d8505b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e676c65736f66742f6a61736d696e2d636c69656e742e737667)](https://packagist.org/packages/ringlesoft/jasmin-client)[![Total Downloads](https://camo.githubusercontent.com/b15108888425548737447f50ace8ca61252b84014f3d0a9ee79e95c9d02d040c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72696e676c65736f66742f6a61736d696e2d636c69656e742e737667)](https://packagist.org/packages/ringlesoft/jasmin-client)[![PHP Version Require](https://camo.githubusercontent.com/be66454bda8f38cc01a60a40670166d883c5cd6f347dd8b38e4cd3aaef66e4b5/68747470733a2f2f706f7365722e707567782e6f72672f72696e676c65736f66742f6a61736d696e2d636c69656e742f726571756972652f706870)](https://packagist.org/ringlesoft/jasmin-client)[![Dependents](https://camo.githubusercontent.com/26841accbb5ed169c3d7504d050f4cb81f2c376865e48b556ff7d1debac9fd02/68747470733a2f2f706f7365722e707567782e6f72672f72696e676c65736f66742f6a61736d696e2d636c69656e742f646570656e64656e7473)](https://packagist.org/packages/ringlesoft/jasmin-client)

---

A Laravel package for seamless integration with Jasmin SMS Gateway, supporting HTTP, REST API, and SMPP connections.

Features
--------

[](#features)

- Easy-to-use interface for sending and receiving SMS
- Support for HTTP and REST API jasmin options
- SMPP support is coming soon
- Delivery report handling

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

[](#installation)

You can install the package via composer:

```
composer require ringlesoft/jasmin-client
```

Configuration
-------------

[](#configuration)

### Publish the configuration file:

[](#publish-the-configuration-file)

```
php artisan vendor:publish --provider="RingleSoft\JasminClient\JasminClientServiceProvider"
```

Then, edit the `config/jasmin_client.php` file with your Jasmin SMS Gateway credentials and preferred settings.

### Available configurations

[](#available-configurations)

The following are available configurations. Most of these are just defaults and can be overridden in your code

- `url` : The base url of the jasmin server (include the port if different from `80` or `443/446`)
- `username` : The username for your jasmin account
- `password` : The password for your jasmin account
- `dlr_callback_url` : The default sms delivery callback url
- `batch_callback_url` : the default batch callback url
- `batch_errback_url` : the default batch errback url
- `default_dlr_method` : the default dlr method (GET/POST)
- `default_dlr_level` : The default DLR level (1, 2, or 3)
- `batch_chunk_size` : The default Chunk size for batches

Usage
-----

[](#usage)

### Sending an SMS

[](#sending-an-sms)

#### Sending a single message (Http &amp; Rest)

[](#sending-a-single-message--http--rest)

```
$sms = JasminClient::message()
    ->content('Hello there! Have a nice day')
    ->to("255711000000")
    ->from('INFO')
    ->via('rest') // 'rest' or 'http'
    ->send();
```

- Returns `RingleSoft\JasminClient\Models\Jasmin\SentMessage`

#### Sending multiple messages as a batch (Rest only)

[](#sending-multiple-messages-as-a-batch-rest-only)

```
    $message = JasminClient::message(to: "255711000000", content: "Hello There. Have a nice day");
    $message2 = JasminClient::message(to: "255711000002", content: "Hello There. Have a nice day");
    $batch = JasminClient::batch()
    ->addMessage($message)
    ->addMessage($message2)
    ->from("INFO")
    ->send();
```

- Returns `RingleSoft\JasminClient\Models\Jasmin\SentBatch`

### Handling Delivery Statuses

[](#handling-delivery-statuses)

This package provides a streamlined way to handle delivery statuses.

```
Class DlrController extends Controller
{
    public function handleDlr(Request $request)
    {
        return JasminClient::receiveDlrCallback($request, function(DeliveryCallback $dlr) {
            // do something with the dlr and return true for success or false for failure
            // For example, you can dispatch a job to process the Delivery Report
            return true;
        });
    }
}
```

### Handling Batch Callback Requests

[](#handling-batch-callback-requests)

When messages are sent in a batch, Jasmin responds with the ID of the batch created (`batchId`) and enqueue the messages. When each message is sent to SMC, jasmin fires a callback (batch callback) with `messageId` of each message within the batch.

To handle batch callbacks, you can use the `receiveBatchCallback` method.

```
Class DlrController extends Controller
{
    public function handleDlr(Request $request)
    {
        return JasminClient::receiveDlrCallback($request, function(DeliveryCallback $dlr) {
            // do something with the dlr and return true for success or false for failure
            // For example, you can dispatch a job to process Batch Callback
            return true;
        });
    }
}
```

### Checking rates (Http &amp; Rest)

[](#checking-rates-http--rest)

```
    $route = JasminClient::rest()->checkRoute("255711000000");
```

### Checking account balance (Http &amp; Rest)

[](#checking-account-balance-http--rest)

```
    $balance = JasminClient::rest()->checkBalance();
```

### Monitoring Metrics (Http)

[](#monitoring-metrics-http)

```
    $metrics = JasminClient::http()->getMetrics();
```

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

[](#contributing)

I'll soon let you know when you can contribute to this project.

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

Support
-------

[](#support)

- [Buy me a Coffee](https://www.buymeacoffee.com/ringunger)
- [Github Sponsors](https://github.com/sponsors/ringlesoft)

Contacts
--------

[](#contacts)

Follow me on [X](https://x.com/ringunger): [@ringunger](https://x.com/ringunger)
Email me: [](mailto:ringunger@gmail.com)
Website: [https://ringlesoft.com](https://ringlesoft.com/packages/jasmin-client)

> Note: This package is still under development. Please report any issues you encounter.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance42

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

474d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e6e20f0cc6e0f58ef2b8460f08d3d4dfe10d69aaaf352a1b5a201f13eb236d4?d=identicon)[ringunger](/maintainers/ringunger)

---

Top Contributors

[![ringunger](https://avatars.githubusercontent.com/u/6137527?v=4)](https://github.com/ringunger "ringunger (96 commits)")

---

Tags

laravelsmssmppsms-gatewayringlesoftjasminjasmin sms gateway

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ringlesoft-jasmin-client/health.svg)

```
[![Health](https://phpackages.com/badges/ringlesoft-jasmin-client/health.svg)](https://phpackages.com/packages/ringlesoft-jasmin-client)
```

###  Alternatives

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

74310.9M66](/packages/laravel-mcp)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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