svilborg/guzzle-encoding-com

PHP Library for Encoding.com's XML API

Installs: 1 668

Dependents: 1

Stars: 5

Watchers: 3

Language: PHP

v0.3.0 2013-08-21 09:03 UTC

README

Build Status Latest Stable Version Latest Unstable Version

A Guzzle client for Encoding.com's XML API . (Note : Not offical)

Installation

Install using composer

{
    "require" : "svilborg/guzzle-encoding-com"
}

Requirements

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.