lenh / laravel-multichain-api
Laravel 5 wrapper for the Mulitchain php library by Kunstmaan (http://www.kunstmaan.be/)
Installs: 182
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/lenh/laravel-multichain-api
Requires
- illuminate/support: ^5.3
- kunstmaan/libphp-multichain: ^1.0
Requires (Dev)
- graham-campbell/testbench: ^3.0
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-10-26 02:22:29 UTC
README
Laravel 5.x API wrapper package for the Multichain blockchain. Please read the Credits.
Features
- Simple Multichain JsonRPC interface.
- Full Multichain API implementation.
Note: Support for Multichain Version 1.0 alpha 26 released on 28 November 2016 should be released early 2017.
Example usage
$mchain = MultiChain::getInfo();
Installation
Require the package
$ composer require lenh/laravel-multichain-api
Add service provider class to providers section of app.php located in config directory
'providers' => [
.
.
.
Lenh\Multichain\MultiChainServiceProvider::class,
]
Add facade to aliases section of app.php located in config directory.
'aliases' => [
.
.
.
'MultiChain' => Lenh\Multichain\Facade\MultiChain::class,
]
Publish configuration file
$ php artisan vendor:publish --tag=config
This will publish the multichain.php configuration file to config directory.
Configuration
Edit multichain.php loated in the config directory providing the required credentials as per the multichain.conf file on the node you wish to access.
Usage
Refer to the following documentation:
-
Multichain JSON-RPC API commands (http://www.multichain.com/developers/json-rpc-api/)
-
Kunstmaan PHP library (https://github.com/Kunstmaan/libphp-multichain)
-
The
MultichainClient.phpfile located in thevendor/kunstmaan/libphp-multichain/src/be/kunstmaan/multichaindirectory.
Credits
I take no credit for this work - the real credits go to the folks Kunstmaan Labs who wrote the original php library (https://github.com/Kunstmaan/libphp-multichain).
License
The MIT License (MIT). Please see License File for more information.