amalgam-blockchain / amalgam-php
Amalgam API PHP library for Yii framework
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- textalk/websocket: 1.2
- yiisoft/yii2: ^2.0
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.