Download the PHP package electroneum/wallet-manager-php without Composer

On this page you can find all versions of the php package electroneum/wallet-manager-php. 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 wallet-manager-php

Electroneum PHP Wallet Manager

A wallet manager written in PHP to create and verify Electroneum wallet addresses and keys.

This allows for a PHP only solution; no need to run the wallet-rpc that requires a synchronised blockchain.

Requirements

Install

Manual Installation

Unpack the code and include the Electroneum WalletManager class:

Composer Installation

Using composer, you can easily install with:

Alternatively, you can add the following to your composer.json:

Demo

A demonstration can be found in .

Quick Use

The most common use, to generate a new wallet:

    $walletManager = new Electroneum\Wallet\WalletManager();
    $wallet = $walletManager->wallet_from_seed();

Getting Started

Create the WalletManager() object, optionally passing an ISO 639-1 code for the required mnemonic language:

// Default to English
$walletManager = new Electroneum\Wallet\WalletManager();

// French
$walletManager = new Electroneum\Wallet\WalletManager('fr');

Supported languages are currently limited to:

Code Language
de German
en English
eo Esperanto
es Spanish
fr French
it Italian
ja Japanese
pt Portuguese
ru Russian
zh Chinese

Create a Wallet

This accepts an optioan seed (32 hexadecimal string) and returns an array of seed, mnemonic words, wallet address and spend/view public/private keys.

$wallet = $walletManager->wallet_from_seed($seed = null);

Create a Wallet from Mnemonic Words

This accepts a string of space separated mnemonic words and returns an array of seed, mnemonic words, wallet address and spend/view public/private keys.

$wallet = $walletManager->wallet_from_mnemonic($mnemonicWords);

Decode an Integrated Wallet

This accepts an integrated address and returns an array of integrated wallet address, wallet address, public view key, public spend key and payment id.

$wallet = $walletManager->integrated_decode($integrated_wallet);

Encode an Integrated Wallet

This returns an array of integrated wallet address, wallet address, public spend key, public view key and payment id.

This can be created with an optional payment id from the public spend/view keys:

$iAddress = $walletManager->integrated_encode($public_spend_key, $public_view_key, $payment_id = null);

If you do not have the public keys, the is an integrated_encode_address() function that accepts a wallet address, decodes this into the public keys and then calls the above function. As a result, the above is faster if you have the keys available.

$iAddress = $walletManager->integrated_encode_address($address, $payment_id = null);

Public Keys From Wallet Address

This accepts a wallet address and decodes it into the public spend and view keys:

$wallet = $walletManager>decode_address($address);

This returns an array of wallet address, network bytes, public spend key and public view key.

Verify Private Keys

This returns a boolean response based on whether a spend and view key belong to the same wallet:

$result = $walletManager->verify_privates($privateSpendKey, $privateViewKey);

Generate a Payment Id

Generate a cryptographically secure hexadecimal, useful for payment ids:

$paymentId = $walletManager->generate_payment_id($length);

All versions of wallet-manager-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-json Version *
ext-gmp Version *
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 electroneum/wallet-manager-php contains the following files

Loading the files please wait ....