The Remora API

For those intereted, the remora api docs are here: https://wiki.mozilla.org/Update:Remora_API_Docs. The Remora API allows you to get information about addons hosted on addons.mozilla.org. The example below is an implementation of that using file_get_contents and simplexml_load_string in php.

<?php
$cnt = file_get_contents('https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/Firebug');
$sxe = simplexml_load_string($cnt);
if ($sxe === false) {
echo 'Error while parsing the document';
exit;
}
echo "<style>\nbody{font-family:verdana;}\n</style>" ;
echo "<div id='box' style='width:200px;background:#eeeeee'>";
echo "<img src='".$sxe->icon."' /><br />" ;
echo "Addon:".$sxe->name."<br>";
echo "Latest Version:".$sxe->version." by ".$sxe->authors[0]->author[0]->name."</br>" ;
echo "Version Status:".$sxe->status."</br>" ;
echo "Install Link:<a href='".$sxe->install[0]."'>Install</a><br />";
echo "Summary:<p>".$sxe->summary."</p>" ;
echo "</div>";
ini_set ( 'display_errors',1);
$cnt = file_get_contents('https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/measureit');
$sxe = simplexml_load_string($cnt);
if ($sxe === false) {
echo 'Error while parsing the document';
exit;
}
echo "<style>\nbody{font-family:verdana;}\n</style>" ;
echo "<div id='box' style='width:200px;background:#eeeeee'>";
echo "<img src='".$sxe->icon."' /><br />" ;
echo "Addon:".$sxe->name."<br>";
echo "Latest Version:".$sxe->version." by ".$sxe->authors[0]->author[0]->name."</br>" ;
echo "Version Status:".$sxe->status."</br>" ;
echo "Install Link:<a href='".$sxe->install[0]."'>Install</a><br />";
echo "Summary:<p>".$sxe->summary."</p>" ;
echo "</div>";

ini_set ( 'display_errors',1);
$cnt = file_get_contents('https://services.addons.mozilla.org/en-US/firefox/api/1.5/addon/foxyproxy-standard');
$sxe = simplexml_load_string($cnt);
if ($sxe === false) {
echo 'Error while parsing the document';
exit;
}
echo "<style>\nbody{font-family:verdana;}\n</style>" ;
echo "<div id='box' style='width:200px;background:#eeeeee'>";
echo "<img src='".$sxe->icon."' /><br />" ;
echo "Addon:".$sxe->name."<br>";
echo "Latest Version:".$sxe->version." by ".$sxe->authors[0]->author[0]->name."</br>" ;
echo "Version Status:".$sxe->status."</br>" ;
echo "Install Link:<a href='".$sxe->install[0]."'>Install</a><br />";
echo "Summary:<p>".$sxe->summary."</p>" ;
echo "</div>";
?>
Error while parsing the document