svilborg/guzzle-encoding-com
Composer 安装命令:
composer require svilborg/guzzle-encoding-com
包简介
PHP Library for Encoding.com's XML API
README 文档
README
A Guzzle client for Encoding.com's XML API . (Note : Not offical)
Installation
Install using composer
{
"require" : "svilborg/guzzle-encoding-com"
}
Requirements
- PHP Version >=5.3.2.
- PHP Guzzle Library
- Requires a API Key and User ID from Encoding.com
- See also the API documentation
Usage
use Gencoding\Guzzle\Encoding\EncodingClient; $client = EncodingClient::factory(array( 'userid' => '12345', 'userkey' => 'X1Y2Z3A4B5C6')); $command = $client->getCommand('GetMediaInfo', array( "mediaid" => 8888888888 )); try { $result = $command->getResult(); $resultObject = $result->getXmlElement(); } catch (\Exception $e) { // Catch Errors }
Running Tests
First, install PHPUnit with composer.phar install --dev, then run
./vendor/bin/phpunit.
统计信息
- 总下载量: 5.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2013-08-13