hpcloud/hpcloud-php
Composer 安装命令:
composer require hpcloud/hpcloud-php
包简介
Access HPCloud and OpenStack services in PHP.
关键字:
README 文档
README
This package provides PHP OpenStack bindings for HP Helion OpenStack and the HP Helion Public Cloud.
You can use this library to:
- Authenticate your application.
- Interact with Object Storage (aka Swift).
- Interact with CDN service (Content Delivery Network) in the public cloud.
Previously this library could be used to interact with our relational database (DBaaS and MySQL compatible). The relational database API has changed and the bindings do not currently support this feature.
Requirements
- PHP 5.3+ (currently tested against 5.3, 5.4, 5.5)
- An active HP Helion Public Cloud account with the desired services or HP Helion OpenStack. Please note that the services you wish to use (e.g. Object Storage) must be activated on your account. Services may be activated through your account's Horizon user interface (aka HP Helion Public Cloud Console). The Public Cloud Console can be accessed at (http://www.hpcloud.com/console).
Suggestions
- Enable the cURL extension for full protocol support.
We also have support for using PHP's native HTTP stream wrapper, but it is not as reliable. We recommend cURL.
Versioning
We have a goal to be as consistent as possible with Semantic Versioning. For released HP Cloud services this is what you can expect. For products in beta expect the included components to be in beta.
Installation
There are currently two methods of installation. We've been considering PEAR and Phar releases, but have currently limited to only Composer and builds because these cover our needs.
Method #1:
Use Composer to download and install the latest version of HPCloud-PHP.
Method #2:
Download a tagged release and include it in your project.
Features
Identity Services
Authenticate, authorize service usage, and retrieve account information.
Object Storage
Store files or other data objects in containers on your object storage instance. Create, modify and delete containers. Manage ACLs. Read, write, and delete objects. Expose objects in your object storage to other services.
With full stream wrapper support, you can use built-in
PHP functions like file_get_contents(), fopen(), and stat() for
reading and writing files into object storage.
CDN
With CDN service enabled (available in the public cloud), objects in Object Storage can be pushed onto the HP Helion Public Cloud edge server network.
With this library, manage CDN integration for object storage containers, and manage individual objects. The library allows you to fetch cached objects either from object storage or from the CDN cache.
Autoloading
HPCloud is PSR-0 compliant, which means that it should work with any PSR-0 autoloader. However, it also comes with its own autoloader for apps that don't yet make use of a standard autoloader.
Composer Support
HPCloud-PHP is available as part of the Packagist archive, which means you can use Composer to automatically download, install, and manage revisions to HPCloud-PHP from within your project.
We're big fans of Composer.
More information
HP Cloud is a cloud computing platform that provides many services, inlcuding compute installs, object and block storage, and a host of hosted services.
This library provides access to those services.
The best source of documentation is the official API documentation, which is available at http://hpcloud.github.com/HPCloud-PHP/doc/api/html/index.html
HPCloud-PHP is maintained by the Developer Experience team at HP Cloud.
hpcloud/hpcloud-php 适用场景与选型建议
hpcloud/hpcloud-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 950 次下载、GitHub Stars 达 23, 最近一次更新时间为 2012 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Openstack」 「hpcloud」 「cloud」 「swift」 「nova」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hpcloud/hpcloud-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hpcloud/hpcloud-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hpcloud/hpcloud-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An HTTP client with automatic authentication for an OpenStack Identity Service API a.k.a. Keystone
A SDK for working with B2 cloud storage.
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
Rackspace package containing Rackspace/OpenStack components for the DreamFactory(tm) core.
The port of python-cloudfiles library to work with OpenStack Object Storage
UCloud Resource (Cloud) Storage SDK for PHP
统计信息
- 总下载量: 950
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-03-19