PHPackages                             open-platform/open-wallet-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. open-platform/open-wallet-php

ActiveLibrary

open-platform/open-wallet-php
=============================

Open Platform Wallet PHP Library

00PHP

Since May 1Pushed 3y ago2 watchersCompare

[ Source](https://github.com/OpenFuturePlatform/wallet-core-php)[ Packagist](https://packagist.org/packages/open-platform/open-wallet-php)[ RSS](/packages/open-platform-open-wallet-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Requirements
------------

[](#requirements)

PHP 5.6.0 and later.

Dependencies
------------

[](#dependencies)

### Install OPEN Trust Wallet Library

[](#install-open-trust-wallet-library)

### STEP 1 - Clone repository

[](#step-1---clone-repository)

```
git clone https://github.com/OpenFuturePlatform/wallet-core.git
```

### STEP 2 - Build Open Library

[](#step-2---build-open-library)

```
cd wallet-core/open-platform/core-cpp
cmake . -DWALLET_CORE=../../
make
```

### STEP 3 - Copy Open Library

[](#step-3---copy-open-library)

Copying shared library to "/usr/lib" allows use it from everywhere

```
sudo cp libOpenWallet.so /usr/lib
sudo chmod 0755 /usr/lib/libOpenWallet.so
```

### STEP 4 - Install PHP-CPP Library

[](#step-4---install-php-cpp-library)

The PHP-CPP library is a C++ library for developing PHP extensions.

```
cd wallet-core/open-platform/php/php-cpp
make
sudo make install
```

### STEP 5 - Build OPEN PHP Extension

[](#step-5---build-open-php-extension)

```
cd wallet-core/open-platform/php
make
sudo make install
```

Getting Started
---------------

[](#getting-started)

```
require_once('lib/OPEN.php');

$open = new OPEN();
$open->setApiKey("op_api_key");
$open->setSecretKey("op_api_secret");
```

Coin Types
----------

[](#coin-types)

```
0   -> BTC
60  -> ETH
144 -> XRP
195 -> TRX
354 -> DOT
501 -> SOL
714 -> BNB

```

### Generate new blockchain wallet

[](#generate-new-blockchain-wallet)

```
$result = $open->generateWallet($coinType, $saveAddress);
```

### Import blockchain wallet

[](#import-blockchain-wallet)

```
$address = $open->importWallet($privateKey, $coinType);
```

### Get Nonce value of address

[](#get-nonce-value-of-address)

```
$nonce = $open->getNonce($address, $network);
```

### Sign transaction

[](#sign-transaction)

```
$signedTransaction = $open->sign($privateKey, $address, $chainId, $gasPrice, $gasLimit, $amount, $nonce);
```

### Broadcast transaction

[](#broadcast-transaction)

```
$trxHash = $open->broadcast($signedTransaction, $coinType);
```

### Encrypt data with password

[](#encrypt-data-with-password)

```
$encryptedData = $open->encrypt($privateKey, $password);
```

### Decrypt data with password

[](#decrypt-data-with-password)

```
$decryptedData = $open->decrypt($data, $password);
```

### Generate Wallet for User

[](#generate-wallet-for-user)

```
$wallets = $open->generateUserWallet($userId, $webHookAddress, $coinTypes = array(), $isTest);
```

### Import user Wallet

[](#import-user-wallet)

```
$wallets = $open->importUserWallet($userId, $webHookAddress, $isTest, $encryptedData, $address, $coinType, $metadata)
```

### Generate Wallet for Order

[](#generate-wallet-for-order)

```
$wallets = $open->generateOrderWallet($webHookAddress, $coinTypes = array(), $isTest, $orderId, $amount, $orderCurrency, $metadata);
```

### Import Wallet for Order

[](#import-wallet-for-order)

```
$wallets = $open->importOrderWallet($webHookAddress, $orderId, $amount, $isTest, $orderCurrency, $encryptedData, $address, $coinType, $metadata);
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9896b9a55f035af8dabb4fc03700cc2c54c6593cc95ca4fa8afdb2dfb8d441a5?d=identicon)[physcom](/maintainers/physcom)

---

Top Contributors

[![physcom](https://avatars.githubusercontent.com/u/14329104?v=4)](https://github.com/physcom "physcom (7 commits)")

---

Tags

blockchainopenwallet

### Embed Badge

![Health badge](/badges/open-platform-open-wallet-php/health.svg)

```
[![Health](https://phpackages.com/badges/open-platform-open-wallet-php/health.svg)](https://phpackages.com/packages/open-platform-open-wallet-php)
```

PHPackages © 2026

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