sdavis1902/lunanode-api-php
Composer 安装命令:
composer require sdavis1902/lunanode-api-php
包简介
Php Wrapper for Lunanode Virtual Hosting Api
README 文档
README
This is a simple wrapper for Lunanode Hostings api.
Install
Via Composer
$ composer require sdavis1902/lunanode-api-php
Usage
$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=apikey
Then 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 ]); }
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email s.davis1902@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-04