svilborg / guzzle-encoding-com
PHP Library for Encoding.com's XML API
Installs: 5 508
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.2
- guzzle/guzzle: *
Requires (Dev)
- phing/phing: dev-master
- phpunit/phpunit: 3.7.*@dev
This package is auto-updated.
Last update: 2024-10-29 04:52:53 UTC
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
.