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-04-19 16:14:58 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.