PHPackages                             lxlxw/bytom-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. lxlxw/bytom-php-sdk

ActiveLibrary[API Development](/categories/api)

lxlxw/bytom-php-sdk
===================

PHP SDK to interact with Bytomd

v1.0.1(8y ago)32466[1 issues](https://github.com/lxlxw/bytom-php-sdk/issues)MITPHPPHP &gt;=5.4

Since May 18Pushed 8y ago2 watchersCompare

[ Source](https://github.com/lxlxw/bytom-php-sdk)[ Packagist](https://packagist.org/packages/lxlxw/bytom-php-sdk)[ Docs](https://github.com/lxlxw/bytom-php-sdk)[ RSS](/packages/lxlxw-bytom-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Bytom PHP SDK
=============

[](#bytom-php-sdk)

This SDK contains methods for easily interacting with the Bytom API. Below are examples to get you started. For more information, please see Bytom API reference documentation at

[![Latest Version](https://camo.githubusercontent.com/68015b68632a7fdccd46ad19860f8f99d0f7c39b997c64f16fff18b806a6cd29/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656c65617365732d76312e302e312d627269676874677265656e2e737667)](https://github.com/lxlxw/bytom-php-sdk/releases)[![Total Downloads](https://camo.githubusercontent.com/38e3691e5e1db19061b4d3f0a92926cfd27d2f02a7f7168a6f7026fe500e1973/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d76312e302e312d6f72616e67652e737667)](https://packagist.org/packages/lxlxw/bytom-php-sdk)

\[ [English](https://github.com/lxlxw/bytom-php-sdk)| [中文](https://github.com/lxlxw/bytom-php-sdk/blob/master/doc/cn.md)\]

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Install with Composer](#install-with-composer)
    - [Install with Git](#install-with-git)
    - [Install with another method](#install-with-another-method)
- [Usage](#usage)
    - [Usage examples](#usage-examples)
    - [All usage examples](#all-usage-examples)
- [Support and Feedback](#support-and-feedback)
- [Contact](#contact)
- [License](#license)

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

[](#installation)

There are various ways to install and use this sdk. We'll elaborate on a couple here. Note that the Bytom PHP SDK requires PHP 5.4 or newer.

### Install with Composer

[](#install-with-composer)

To install the SDK with Composer, you will need to be using [Composer](http://getcomposer.org/)in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer:

```
curl -sS https://getcomposer.org/installer | php
```

Then create a composer.json file in your projects root folder, containing:

```
{
    "require": {
        "lxlxw/bytom-php-sdk" : "dev-master"
    }
}
```

Run "composer install" to download the SDK and set up the autoloader, and then require it from your PHP script:

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

### Install with Git

[](#install-with-git)

You can clone down this sdk using your favorite github client, or via the terminal.

```
git clone https://github.com/lxlxw/bytom-php-sdk.git
```

You can then include the `autoload.php` file in your code to automatically load the Bytom SDK classes.

```
require 'autoload.php';
```

### Install with another method

[](#install-with-another-method)

If you downloaded this sdk using any other means you can treat it like you used the git method above. Once it's installed you need only require the `autoload.php` to have access to the sdk.

Usage
-----

[](#usage)

### Usage examples

[](#usage-examples)

You should always use Composer's autoloader in your application to automatically load the your dependencies. All examples below assumes you've already included this in your file:

```
require 'vendor/autoload.php';
use Bytom\BytomClient;
```

Here's how to send a message using the SDK:

```
# First, instantiate the SDK Client

# Local node, default url is `127.0.0.1:9888`
$client = new BytomClient();
# Remote node
$client = new BytomClient('url', 'auth-token');

# Now, request bytom api.
$alias = 'test_name';
$pwd = '123456';
$res = $client->createKey($alias, $pwd);
$data = $res->getJSONDecodedBody();
```

### All usage examples

[](#all-usage-examples)

You find more detailed documentation at [/doc](doc/index.md).

Support and Feedback
--------------------

[](#support-and-feedback)

If you find a bug, please submit the issue in Github directly. [Bytom-PHP-SDK Issues](https://github.com/lxlxw/bytom-php-sdk/issues)

Contact
-------

[](#contact)

- Email：

License
-------

[](#license)

Bytom PHP SDK is based on the MIT protocol.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2965d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16403352?v=4)[0xlin](/maintainers/lxlxw)[@lxlxw](https://github.com/lxlxw)

---

Top Contributors

[![lxlxw](https://avatars.githubusercontent.com/u/16403352?v=4)](https://github.com/lxlxw "lxlxw (25 commits)")

---

Tags

phpsdkbytom

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

46784.5k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

138106.8k2](/packages/jstolpe-instagram-graph-api-php-sdk)[octw/aramex

A Library to integrate with Aramex APIs

2926.2k](/packages/octw-aramex)

PHPackages © 2026

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