guzzle/guzzle-aws

Guzzle PHP 客户端用于 AWS

2.0.0-alpha 2012-08-15 22:21 UTC

README

使用 Guzzle 框架与各种 Amazon Web Services API 进行交互,该框架用于在 PHP 中构建 RESTful 互联网服务客户端。

  • Amazon S3
  • Amazon SQS
  • Amazon SimpleDB
  • Amazon MWS

安装

将 guzzle-aws 添加到您的 Guzzle 安装目录下的 src/Guzzle/Aws 目录

cd /path/to/guzzle
git submodule add git://github.com/guzzle/guzzle-aws.git ./src/Guzzle/Aws

现在您可以构建包含 guzzle-aws 和主要 Guzzle 框架的 phar 文件

cd /path/to/guzzle/build
phing phar

现在您只需在脚本中包含 guzzle.phar。phar 文件将负责自动加载 Guzzle 类

<?php
require_once 'guzzle.phar';

测试

将 phpunit.xml.dist 复制到 phpunit.xml。在 phpunit.xml 文件中,输入您的 Guzzle 安装的全路径到 GUZZLE 服务器参数。

更多信息