PHPackages                             sui-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sui-php/sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sui-php/sdk
===========

SUI PHP SDK

0.1.1(11mo ago)3111MITPHPCI failing

Since Jun 16Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/MultipleChain-PHP/sui-php)[ Packagist](https://packagist.org/packages/sui-php/sdk)[ RSS](/packages/sui-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (4)Used By (1)

SUI PHP SDK
===========

[](#sui-php-sdk)

About
-----

[](#about)

SUI PHP SDK is a PHP library that provides easy access to the SUI blockchain. This SDK allows PHP developers to interact with SUI blockchain nodes, create transactions, serialize and deserialize data using Binary Canonical Serialization (BCS), and manage accounts without writing low-level code. It is also fully implemented from the @mysten/sui () TypeScript library. In other words, it is designed with the same structure there and you can easily find what you need in this library by examining the document in the link.

Key features:

- Network communication with SUI nodes
- BCS serialization and deserialization
- Transaction building and signing
- Account management

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

[](#installation)

```
composer require sui-php/sdk
```

Example
-------

[](#example)

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

use Sui\Utils;
use Sui\Client;
use Sui\Bcs\Bcs;
use Sui\Keypairs\Ed25519\Keypair;
use Sui\Transactions\Inputs;
use Sui\Transactions\Commands;
use Sui\Transactions\Transaction;
use Sui\Transactions\BuildTransactionOptions;

$client = new Client('https://fullnode.devnet.sui.io:443');

$coin = Bcs::struct('Coin', [
    'value' => Bcs::u64(),
    'owner' => Bcs::string(),
    'is_locked' => Bcs::bool(),
]);

$rustBcs = 'gNGxBWAAAAAOQmlnIFdhbGxldCBHdXkA';
$expected = [
    'owner' => 'Big Wallet Guy',
    'value' => '412412400000',
    'is_locked' => false,
];

$serialized = $coin->serialize($expected, ['initialSize' => 1, 'maxSize' => 1024]);
$parsed = $coin->fromBase64($rustBcs);

$ref = [
    'objectId' => str_pad(strval(mt_rand(0, 100000)), 64, '0'),
    'version' => strval(mt_rand(0, 10000)),
    'digest' => Utils::toBase58(json_decode('[
        0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0,
        1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1,
        2, 3, 4, 5, 6, 7, 8, 9, 1, 2
    ]'))
];

$keypair = Keypair::generate();
$tx = new Transaction(new BuildTransactionOptions($client));

$tx->setSender($keypair->getPublicKey()->toSuiAddress());
$tx->setGasPrice(5);
$tx->setGasBudget(100);
$tx->setGasPayment([$ref]);

$coin = $tx->splitCoins($tx->gas(), [100]);

$tx->add(Commands::mergeCoins($tx->gas(), [$coin, $tx->object(Inputs::objectRef(
    $ref['objectId'],
    $ref['digest'],
    $ref['version']
))]));

$tx->add(Commands::moveCall([
    'target' => '0x2::devnet_nft::mint',
    'typeArguments' => [],
    'arguments' => [
        $tx->pureFactory->string('foo'),
        $tx->pureFactory->string('bar'),
        $tx->pureFactory->string('baz'),
    ],
]));

$bytes = $tx->build();

$serializedSignature = $keypair->signTransaction($bytes);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance52

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity29

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

Total

2

Last Release

335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b951e4bb4ee9ba166bc685b7efddd6f66d288e960007795dbe654fce33ded85?d=identicon)[0xbeycan](/maintainers/0xbeycan)

---

Top Contributors

[![0xBeycan](https://avatars.githubusercontent.com/u/50718965?v=4)](https://github.com/0xBeycan "0xBeycan (77 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sui-php-sdk/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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