Obtener información de 'Math_Quaternion'
<?php
require_once 'XML/RPC.php';
$client = new XML_RPC_Client('/xmlrpc.php', 'pear.php.net');
$args[0] = new XML_RPC_Value;
$args[0]->addScalar("Math_Quaternion", $XML_RPC_String);
$msg = new XML_RPC_Message('package.info', $args);
$result = $client->send($msg);
if ($result->faultCode()) {
die($result->faultString());
}
$info = XML_RPC_decode($result->value());
$release = array_shift($info['releases']);
echo <<< XML_RPC_INFO
Package:
{$info['name']}
Summary:
{$info['summary']}
Description:
{$info['description']}
Category {$info['category']}
Maintainers {$release['doneby']}
Version {$info['stable']}
Release Date {$release['releasedate']}
Release License {$info['license']}
Release State {$release['state']}
Release Notes {$release['releasenotes']}
XML_RPC_INFO;
?>
Resultado
Package: Math_Quaternion Summary: Classes that define Quaternions and their operations Description: Classes that represent and manipulate quaternions. Contain definitions for basic arithmetic functions in a static class. Quaternions are an extension of the idea of complex numbers, and a quaternion is defined as: q = a + b*i + c*j + d*k In 1844 Hamilton described a system in which numbers were composed of a real part and 3 imaginary and independent parts (i,j,k), such that: i^2 = j^2 = k^2 = -1 and ij = k, jk = i, ki = j and ji = -k, kj = -i, ik = -j The above are known as "Hamilton's rules" Category Math Maintainers jmcastagnetto Version 0.7.1 Release Date 2003-01-17 23:26:00 Release License PHP Release State beta Release Notes Quaternion manipulation package.