PHPackages                             sending-network/sdn-php-sdk - 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. [API Development](/categories/api)
4. /
5. sending-network/sdn-php-sdk

ActiveLibrary[API Development](/categories/api)

sending-network/sdn-php-sdk
===========================

PHP SDK for interacting with Sending-Network

v0.2.0(2y ago)08MITPHPPHP &gt;=7.4

Since Jun 29Pushed 2y agoCompare

[ Source](https://github.com/Sending-Network/sendingnetwork-php-sdk)[ Packagist](https://packagist.org/packages/sending-network/sdn-php-sdk)[ Docs](https://github.com/Sending-Network/sendingnetwork-php-sdk)[ RSS](/packages/sending-network-sdn-php-sdk/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

sendingnetwork-php-sdk
======================

[](#sendingnetwork-php-sdk)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Software Version](https://camo.githubusercontent.com/2e7b8f37ab59a5a2882774c39e8a81a20e358a3a7434f6bb55abc9120a14efc2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656e64696e672d6e6574776f726b2f73646e2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sending-network/sdn-php-sdk)[![Software License](https://camo.githubusercontent.com/ba2afc784fc8396ddde721de25816b10b528829b060e758f6d30a2c633e9d601/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656e64696e672d6e6574776f726b2f73646e2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ba2afc784fc8396ddde721de25816b10b528829b060e758f6d30a2c633e9d601/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656e64696e672d6e6574776f726b2f73646e2d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)

A PHP SDK for Sending-Network.

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

[](#installation)

```
composer require sending-network/sdn-php-sdk

```

Usage
-----

[](#usage)

### Prepare a configuration file

[](#prepare-a-configuration-file)

Provide server node url, wallet address, private key and developer key in file bot.creds.json:

```
{
    "nodeUrl": "https://example.com",
    "walletAddress": "",
    "privateKey": "",
    "developerKey": ""
}
```

### Create an instance of `SDNClient`

[](#create-an-instance-of-sdnclient)

```
require('vendor/autoload.php');
use SdnSdk\SDNClient;

$json_data = file_get_contents("bot.creds.json");
$config = json_decode($json_data,true);
$client = new SDNClient($config['nodeUrl']);

// login
$token = $client->login($config['walletAddress'], $config['privateKey'], $config['developerKey']);

// add listener for events
$client->addListener(function ($event) {
    // process room event here
    print_r($event);
}, "m.room.message");

// start listen
$client->listenForever();
```

### Call API functions

[](#call-api-functions)

```
// create new room
$client->createRoom("room name");

// invite user
$client->getRoom($roomId)->inviteUser($userId);

// send message
$client->getRoom($roomId)->sendText("hello");
```

Examples
--------

[](#examples)

See more use cases in `examples` directory.

License
-------

[](#license)

[MIT License](LICENSE.md).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

Total

2

Last Release

1047d ago

PHP version history (2 changes)v0.1.0PHP ^8

v0.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/468461?v=4)[James Cooper](/maintainers/jamescooper)[@jamescooper](https://github.com/jamescooper)

---

Top Contributors

[![DelmoreCooper](https://avatars.githubusercontent.com/u/124578915?v=4)](https://github.com/DelmoreCooper "DelmoreCooper (2 commits)")

---

Tags

phpclientsdkSDN

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sending-network-sdn-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/sending-network-sdn-php-sdk/health.svg)](https://phpackages.com/packages/sending-network-sdn-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[kunalvarma05/dropbox-php-sdk

Dropbox PHP API V2 SDK (Unofficial)

3673.2M19](/packages/kunalvarma05-dropbox-php-sdk)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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