PHP code example of codefuze / lisk-composer

1. Go to this page and download the library: Download codefuze/lisk-composer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

codefuze / lisk-composer example snippets


'providers' => [
.....
    Codefuze\Lisk\LiskServiceProvider::class,
],
'aliases' => [
.....
    'Lisk' => Codefuze\Lisk\Lisk::class,

use Codefuze\Lisk\Lisk;
.....
$lisk = new Lisk('node01.lisk.io', 443, true);
$response = $lisk->accounts->get('11689559667869482649L');
var_dump($response);

use Codefuze\Lisk\Lisk;
.....
$lisk = new Lisk();
$response = $lisk->accounts->get('11689559667869482649L');
var_dump($response);

use Codefuze\Lisk\Lisk;
.....
$lisk = new Lisk('testnet.lisk.io', 443, true);
$response = $lisk->accounts->get('11689559667869482649L');
var_dump($response);
sh
$ php artisan vendor:publish