PHPackages                             erdemkeren/jet-sms-php - 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. erdemkeren/jet-sms-php

ActiveLibrary

erdemkeren/jet-sms-php
======================

A PHP client library for jet-sms api

1.2.0(8y ago)19.8k↓100%3MITPHPPHP &gt;=5.6.4

Since Feb 16Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

PHP JetSMS Client
=================

[](#php-jetsms-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0fee94e2fdec136f70e464cc6c019174c1468f68637855a7f8cf6d77ed5ba6f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657264656d6b6572656e2f6a65742d736d732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erdemkeren/jet-sms-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/eede00db199e859f3b0e6be3d184c69d5be214a11f6f340aa8e19baa8d4bfdc3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f657264656d6b6572656e2f6a65742d736d732d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/erdemkeren/jet-sms-php)[![StyleCI](https://camo.githubusercontent.com/dfeec47c1fd97e8f5eae4e21ffe82d14b28ef70b7d18112655a55f5657550419/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132313830323130302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/121802100)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4a0ded0547998275320a58757d25e0ef246364f5d255f69a270fc47e3976d97f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657264656d6b6572656e2f6a65742d736d732d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/erdemkeren/jet-sms-php/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/4e150bfef605d2028be93071e669a849a1f5f13b4643eee3eb365310f9e57fb0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f657264656d6b6572656e2f6a65742d736d732d7068702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/erdemkeren/jet-sms-php/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/8d66f36cbc39932a39fcb0088bd08c2167f7b3b1967dde9849e4b4b1215c443b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657264656d6b6572656e2f6a65742d736d732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erdemkeren/jet-sms-php)

This package provides an easy to use JetSMS service which can be used with both XML and Http apis.

Bu paket, hem XML hem Http API ile çalışan kullanımı kolay bir JetSMS servisi sağlar.

Dokümanın türkçe hali için: [BENIOKU](BENIOKU.md)

Contents
--------

[](#contents)

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

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

[](#installation)

You can install this package via composer:

```
composer require erdemkeren/jet-sms-php
```

### Setting up the JetSMS service

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

You will need to register to JetSMS to use this channel.

Usage
-----

[](#usage)

First, boot the JetSmsService with your desired client implementation.

- **JetSmsXmlClient**
- **JetSmsHttpClient** (This is actually a Rest-Like client but the vendor names their API that way.)

```
require __DIR__ . '/../vendor/autoload.php';

use Erdemkeren\JetSms\JetSmsService;
use Erdemkeren\JetSms\JetSmsService;
use Erdemkeren\JetSms\ShortMessageFactory;
use Erdemkeren\JetSms\Http\Clients\JetSmsXmlClient;
use Erdemkeren\JetSms\Http\Clients\JetSmsHttpClient;
use Erdemkeren\JetSms\ShortMessageCollectionFactory;

$service = new JetSmsService(new JetSmsXmlClient(
    'www.biotekno.biz:8080/SMS-Web/xmlsms',
    'username',
    'password',
    'outboxname'
), new ShortMessageFactory(), new ShortMessageCollectionFactory());

// ya da

$service = new JetSmsService(new JetSmsHttpClient(
    new GuzzleHttp\Client(),
    'https://service.jetsms.com.tr/SMS-Web/HttpSmsSend',
    'username',
    'password',
    'outboxname'
), new ShortMessageFactory(), new ShortMessageCollectionFactory());
```

### Available methods

[](#available-methods)

After successfully booting your JetSmsService instance up; use one of the following methods to send SMS message(s).

#### One Message - Single or Multiple Recipients:

[](#one-message---single-or-multiple-recipients)

```
$response = $service->sendShortMessage(['5530000000', '5420000000'], 'This is a test message.');

if($response->isSuccessful()) {
    // storeGroupIdForLaterReference is not included in the package.
    storeGroupIdForLaterReference($response->groupId());
} else {
    var_dump($response->message());
    var_dump($response->statusCode());
    var_dump($response->status());
}
```

#### Multiple Messages - Multiple Recipients:

[](#multiple-messages---multiple-recipients)

Please not that if you have using that method, every message should only have one receiver. *(This is also an API limitation which I didn't hack.)*

```
$response2 = $service->sendShortMessages([[
    'recipient' => '5530000000',
    'message' => 'This is a test.',
], [
    'recipient' => '5420000000',
    'message' => 'This is another test.',
]]);

if($response2->isSuccessful()) {
    // storeGroupIdForLaterReference is not included in the package.
    storeGroupIdForLaterReference($response2->groupId());
} else {
    var_dump($response2->message());
    var_dump($response2->statusCode());
    var_dump($response2->status());
}
```

### Cross Reference

[](#cross-reference)

`$response->groupId()` will throw BadMethodCallException if the client is `JetSmsHttpClient`. `$response->messageReportIdentifiers()` will throw BadMethodCallException if the client is `JetSmsXmlClient`.

change client implementation 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)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2943d ago

### Community

Maintainers

![](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 (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/erdemkeren-jet-sms-php/health.svg)

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

PHPackages © 2026

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