This is a simple wrapper for Lunanode Hostings api.
Via Composer
$ composer require sdavis1902/lunanode-api-php$api = new \sdavis1902\LunanodeApiPhp\Lunanode($api_id, $api_key);
$vms = $api->request('vm', 'list');
foreach( $vms as $vm ){
$info = $api->request('vm', 'info', [
'vm_id' => $vm->vm_id
]);
}Laravel 5
Add Service Provider and Alias ( not required for 5.5 )
'providers' => [
...
sdavis1902\LunanodeApiPhp\Laravel\LunanodeServiceProvider::class,
],'aliases' => [
...
'Lunanode' => sdavis1902\LunanodeApiPhp\Laravel\Lunanode::class,
],Add the following to your .env file
LND_API_ID=apiid
LND_API_KEY=apikeyThen call the same methods using the Facade
$vms = Lunanode::request('vm', 'list');
foreach( $vms as $vm ){
$info = Lunanode::request('vm', 'info', [
'vm_id' => $vm->vm_id
]);
}Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email s.davis1902@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.