kyon2/laravel5-conoha-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kyon2/laravel5-conoha-api

Composer 安装命令:

composer require kyon2/laravel5-conoha-api

包简介

API for ConoHa on Laravel 5.

README 文档

README

Installation

To install the PHP client library using Composer

composer require kyon2/laravel5-conoha-api

To use the package, register the service provider in config/app.php.

'providers' => [
    // ...
    Kyon2\Conoha\Providers\ConohaServiceProvider::class,
]

Configuration

To configure your connection settings, execute the following command.

php artisan vendor:publish --provider="Kyon2\Conoha\Providers\ConohaServiceProvider"

Then set the following environment variables in .env file.

CONOHA_TENANT_ID
CONOHA_USERNAME
CONOHA_PASSWORD

Features

# Block Storage API v2
GET /v2/{tenant_id}/types
GET /v2/{tenant_id}/types/{volume_type_id}
GET /v2/{tenant_id}/volumes
GET /v2/{tenant_id}/volumes/{volume_id}

# Compute API v2
GET /v2/{tenant_id}/flavors
GET /v2/{tenant_id}/flavors/detail
GET /v2/{tenant_id}/flavors/{flavor_id}
GET /v2/{tenant_id}/servers
GET /v2/{tenant_id}/servers/detail
GET /v2/{tenant_id}/servers/{server_id}

# ObjectStorage API v1
GET /v1/nc_​{account}​/​{container}​
GET /v1/nc_​{account}​/​{container}​/​{object}​

have only one thing one can do "reference-related".

Usage

Create the Instance

To use the ConohaAPI First of all you have to create the ConohaAPI instance.

Example

use Conoha;
public function __construct()
{
    $this->blockStorage = Conoha::driver('BlockStorage');
}

Get a list of Volume Types.

Example

$results = $this->blockStorage->getTypes();

统计信息

  • 总下载量: 61
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固