定制 pcextreme/cloudstack-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

pcextreme/cloudstack-client

最新稳定版本:0.1.7

Composer 安装命令:

composer require pcextreme/cloudstack-client

包简介

Generic Cloudstack Client, compatible with the PCextreme Aurora Compute platform.

README 文档

README

This package is deprecated and will be replaced in the near future

Cloudstack Client

The cloudstack-client is a PHP based Cloudstack API ORM.

The Cloudstack Client utilises the kevindierkx/elicit API ORM and supports all major functionality.

Installation

Currently the Cloudstack Client only supports Laravel based applications, support for native PHP will be added in the future.

To install this package you will need:

  • Laravel >= 4.2
  • PHP >= 5.4

You must then modify your composer.json file and run composer update to include the latest version of the package in your project:

"require": {
	"pcextreme/cloudstack-client": "~0.1"
}

Or you can run the composer require command from your terminal:

composer require pcextreme/cloudstack-client:~0.1

Once the package is installed you need to open app/config/app.php and register the required service provider:

'providers' => [
    'PCextreme\CloudstackClient\Providers\LaravelServiceProvider'
]

Optionaly you can add the following line to your aliases to utilise the provided facade:

'aliases' => [
    'Cloudstack' => 'PCextreme\CloudstackClient\Providers\Facades\Cloudstack',
]

Configuration

Run the following command to publish the package configuration:

php artisan config:publish pcextreme/cloudstack-client

This will add the package configuration to your packages folder app/config/packages/pcextreme/cloudstack-client/config.php, here you will be providing the required connection details.

SSO keys are generally only for Cloudstack administrators and are not required.

Usage

When using the Cloudstack facade you can call all commands available to your Cloudstack user directly.

For example calling listVirtualMachines with the listall parameter would look like the following:

Cloudstack::listVirtualMachines(['listall' => 'true']);

The above would return null when the return count is 0. This happens when you don't have any instances, the same would happen for other list calls. When Cloudstack returns multiple results the Cloudstack Client would return an instance of KevinDierkx\Elicit\Elicit\Collection you can use the methods provided within this instance to manipulate the resulted data.

Please note that the api-list.php is required for every direct request. The Cloudstack Client provides this file by default and is located in the cache/ folder withing this package.

Credits

License

The MIT License (MIT). Please see License File for more information.

pcextreme/cloudstack-client 适用场景与选型建议

pcextreme/cloudstack-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 133 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 03 月 31 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「client」 「cloudstack」 「compute」 「aurora」 「pcextreme」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 pcextreme/cloudstack-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pcextreme/cloudstack-client 我们能提供哪些服务?
定制开发 / 二次开发

基于 pcextreme/cloudstack-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-03-31