amalgam-blockchain/amalgam-php

Amalgam API PHP library for Yii framework

v0.1.6 2019-07-19 05:15 UTC

This package is auto-updated.

Last update: 2024-10-19 17:19:48 UTC


README

This extension provides access to Amalgam blockchain from web applications built on Yii framework.

Quick start

The preferred way to install this extension is through composer. Just run the following command:

composer require amalgam-blockchain/amalgam-php

Configure

Add following lines to your main configuration file and specify correct node IP address and port:

'amalgam' => [
    'class' => 'Amalgam\Amalgam',
    'node' => 'http://127.0.0.1:8090',
],

Both WebSocket (ws/wss) and JSON-RPC (http/https) protocols are supported to connect to nodes.