vmware-pulsant/vcloud-sdk
Composer 安装命令:
composer require vmware-pulsant/vcloud-sdk
包简介
VMware vCloud SDK for PHP - patched version (Forked from Purple-DBU)
README 文档
README
VMware vCloud SDK for PHP (patched version) - Repository for importing with Composer
This project is a fork from the original VMWare SDK for PHP, with the exception of the following additions and changes:
✔ Split VMware/VCloud/API.php (5 MB), and a few other files into individual class files
✔ Normalized class paths (VMware/VCloud/SDK/**/*.php and VMware/VCloud/API/**/*.php)
✔ Compatible with Composer's autoloading
✔ Fixed #2: Allow retrieving the currently logged user's username and token
✔ Fixed #3: Remove unnecessary require_once
✔ Fixed #5: Edge gateway modification doesn't work
✔ Fixed #6: Uploading big OVF files doesn't work
✔ Fixed #7: Uploading OVF files doesn't work on Windows/Cygwin
✔ Fixed #8: Set image type in VMWare_VCloud_SDK_Vdc::uploadMedia (credits to @brianium)
✔ Fixed #9: Add support for storageKB field on VMware_VCloud_API_QueryResultVAppTemp (credits to @brianium)
✔ Fixed #12: VMware_VCloud_SDK_Vdc::sendUploadVAppTemplateRequest should uses $vdcStorageProfileRef (credits to @brianium)
✔ Fixed #16: OperatingSytemSection and VirtualHardwareSection should have the "ovf" namespace (credits to @brianium)
✔ Fixed #17: Add support for details in VMware_VCloud_API_QueryResultTaskRecordType (credits to @brianium)
✔ Fixed #18: Add vmPendingQuestion to SDK_Constants (credits to @brianium)
✔ Fixed #19: PHP Warning: Illegal string offset on multiple API_QueryResult* classes
✔ Fixed #20: Added onProgress function for http-client upload method and vdc uploads (credits to @yconan)
✔ Fixed #21: Set all private fields and functions to protected
Installation
vmware/vcloud-sdk-patched is available through Composer.
"repositories": [ { "type": "pear", "url": "http://pear.php.net" } ], "require": { "vmware/vcloud-sdk-patched": "550.5.0", "pear-pear/HTTP_Request2": "*" }
php composer.phar update
If you are not familiar with Composer, please read the full installation intructions.
Usage
See API documentation or official VMware documentation
Include Composer autoloaded
// On top of your script require_once 'path/to/.../vendor/autoload.php';
Login
// $hostname = ... // $username = ... // $organization = ... // $password = ... // $apiVersion = ... try { $service = \VMware_VCloud_SDK_Service::getService(); $service->login( $hostname, array( 'username' => $username . '@' . $organization, 'password' => $password, ), array( 'proxy_host' => null, 'proxy_port' => null, 'proxy_user' => null, 'proxy_password' => null, 'ssl_verify_peer' => false, 'ssl_verify_host' => false, 'ssl_cafile' => null, ), $apiVersion ); } catch (\VMware_VCloud_SDK_Exception $e) { throw new \Exception('Login failed'); }
Versioning
Using Semver as a base for versioning, this project also
follow additional guidelines for version numbering. each version is in the
format vwx.y.z where:
vwxis the concatenation of the vCloud SDK that this SDK is based upon (eg. "512" for 5.1.2)- Each modification of
yintroduces a new patch - Modifications of
yare simply corrections of existing patches
Licensing
This project is released under Creative Commons - Attribution 3.0 Unported license. If this license does not fit your requirement for whatever reason, but you would be interested in using the work (as defined below) under another license, please contact authors.
Contributing
Contributions (issues ♥, pull requests ♥♥♥) are more than welcome! Feel free to clone, fork, modify, extend, etc, as long as you respect the license terms.
See contributing intructions for details.
vmware-pulsant/vcloud-sdk 适用场景与选型建议
vmware-pulsant/vcloud-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.04k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 04 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「sdk」 「VMware」 「vcloud」 「director」 「patched」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vmware-pulsant/vcloud-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vmware-pulsant/vcloud-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vmware-pulsant/vcloud-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
VMware vCloud SDK for PHP - patched version
A PSR-7 compatible library for making CRUD API endpoints
MyAdmin VMware VPS provisioning plugin - integrates VMware hypervisor management with the MyAdmin billing and service platform
VMware vCloud SDK for PHP
simple sdk for manage and working with vspahre automation api
A PHP implementation for the VMWare API
统计信息
- 总下载量: 2.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC-BY-3.0
- 更新时间: 2020-04-27