PHPackages                             uwimchain/uwim-lib-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. uwimchain/uwim-lib-php

ActiveLibrary

uwimchain/uwim-lib-php
======================

07PHP

Since Dec 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/uwimchain/uwim.lib.php)[ Packagist](https://packagist.org/packages/uwimchain/uwim-lib-php)[ RSS](/packages/uwimchain-uwim-lib-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

uwim.lib.php
============

[](#uwimlibphp)

First, you need to import the library

```
require_once 'vendor/autoload.php';
use uwim\Uwim;
```

1. Generate a mnemonic phrase

    ```
    $mnemonic = Uwim::GenerateMnemonic();
    ```

    To generate public, private keys or addresses from a mnemonic phrase, you can use a ready-made mnemonic phrase.
2. Generating a Seed string from the mnemonic phrase

    ```
    $seed = Uwim::SeedFromMnemonic($mnemonic);
    ```
3. Generating a secret key from a Seed string or mnemonic phrase

    ```
    $secret_key = Uwim::SecretKeyFromSeed($seed);
    $secret_key = Uwim::SecretKeyFromMnemonic($mnemonic);
    ```
4. Generation of a public key from a secret one or mnemonic phrase

    ```
    $public_key = Uwim::PublicKeyFromSecretKey($secret_key);
    $public_key = Uwim::PublicKeyFromMnemonic($mnemonic);
    ```
5. A user address generation from a public key or mnemonic phrase

    You can use a public key, or a mnemonic phrase to generate an address. You must also specify one of the three available prefixes. If you specify any other prefix, the function will return an error

    5.1 Generating an address with a prefix "uw" - user wallet address

    ```
    uw_address = Uwim::AddressFromPublicKey($public_key, Uwim::UW_ADDRESS_PREFIX);
    $uw_address = Uwim::AddressFromMnemonic($mnemonic, Uwim::UW_ADDRESS_PREFIX);
    ```

    5.2 Generating an address with the "sc" prefix - smart contract address

    ```
    $sc_address = Uwim::AddressFromPublicKey($public_key, UWIM::SC_ADDRESS_PREFIX);
    $sc_address = Uwim::AddressFromMnemonic($mnemonic, UWIM::SC_ADDRESS_PREFIX);
    ```

    5.3 Generating an address with the "nd" prefix - the address of the node

    ```
    $nd_address = Uwim::AddressFromPublicKey($public_key, UWIM::ND_ADDRESS_PREFIX);
    $nd_address = Uwim::AddressFromMnemonic($mnemonic, UWIM::ND_ADDRESS_PREFIX);
    ```
6. Receiving a RAW transaction line for sending to the blockchain API

    In order to generate a RAW transaction line, you need to specify the following data as:
    Mnemonic phrase (the sender of the transaction);
    Sender address (must be generated from a mnemonic phrase or be suitable for it);
    Address of the recipient;
    The number of coins you want to transfer (for some transaction types or transaction subtypes, the number of coins may be zero early);
    Address of the recipient;
    The designation of the token whose coins you want to transfer (for example: "uwm");
    Transaction subtype (for example: "default\_transaction");
    Transaction comment data in JSON format (for each type or subtype of a transaction, its own comment data is indicated or not indicated at all);
    Transaction type (Number 1 or 3);

    ```
    $transaction_raw = Uwim::GetRawTransaction(
        $mnemonic,
        $sender_address,
        $recipient_address,
        $amount,
        $token_label,
        $transaction_comment_title,
        $transaction_comment_data,
        $transaction_type
    );
    ```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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/d938377c9312ada63e5d4d77f98c06cf4b3c41e6cb7743a6751e52a6d7aa2296?d=identicon)[uwimchain](/maintainers/uwimchain)

---

Top Contributors

[![uwimchain](https://avatars.githubusercontent.com/u/85935562?v=4)](https://github.com/uwimchain "uwimchain (12 commits)")

### Embed Badge

![Health badge](/badges/uwimchain-uwim-lib-php/health.svg)

```
[![Health](https://phpackages.com/badges/uwimchain-uwim-lib-php/health.svg)](https://phpackages.com/packages/uwimchain-uwim-lib-php)
```

PHPackages © 2026

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