Download the PHP package inodrahq/sui-sdk without Composer

On this page you can find all versions of the php package inodrahq/sui-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sui-sdk

PHP Sui SDK

A comprehensive PHP SDK for the Sui blockchain.

Requirements

Installation

Quick Start

Features

Auto-Resolving Transaction Builder

The Transaction class automatically resolves gas price, gas budget (via dry-run), and gas coin selection. No manual gas configuration needed.

Objects are also auto-resolved from the network:

You can still override any gas parameter manually:

Signature Schemes

The SDK supports all six Sui signature schemes.

Multisig:

zkLogin:

Passkey:

Typed Responses

All RPC methods return typed objects with IDE autocomplete support.

Wallet Management

Network Presets

Convenience Methods

High-level methods that handle coin selection, gas, and transaction building automatically:

Transaction Builder (Low-Level)

Build complex Programmable Transaction Blocks (PTBs) manually:

Available Commands

Pure Input Helpers

Object Inputs

Full RPC API

All 40+ Sui RPC methods are supported:

Paginated Responses

Signature Verification

Transport Layer

The SDK supports pluggable transports. Both JSON-RPC and gRPC use the same SuiClient API -- all methods work identically regardless of transport.

JSON-RPC (default)

gRPC

gRPC provides better performance with binary serialization and HTTP/2. Requires the ext-grpc PHP extension:

gRPC coverage: Most RPC methods have gRPC equivalents. The following methods are JSON-RPC only and will automatically fall back to JSON-RPC via the MethodRouter:

Method Reason
getStakes No gRPC equivalent
getStakesByIds No gRPC equivalent
getLatestSuiSystemState No gRPC equivalent
getValidatorsApy No gRPC equivalent
getCommitteeInfo No gRPC equivalent
queryTransactionBlocks No gRPC equivalent
queryEvents No gRPC equivalent
getCheckpoints No gRPC equivalent
devInspectTransactionBlock No gRPC equivalent
getRpcApiVersion JSON-RPC specific

Examples

Deploy a Move Package

Stake SUI

Or use the convenience method:

Send USDC

Testing

655 tests covering:

License

MIT


All versions of sui-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-sodium Version *
ext-bcmath Version *
ext-openssl Version *
inodrahq/bcs Version ^1.0
guzzlehttp/guzzle Version ^7.0
bitwasp/bech32 Version ^0.0.1
google/protobuf Version ^5.0
grpc/grpc Version ^1.74
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inodrahq/sui-sdk contains the following files

Loading the files please wait ...