phpRiya 0.9 Beta review
DownloadRiya is an excellent web based face recognition service
|
|
Riya is an excellent web based face recognition service. phpRiya is a PHP4 class written by GROU.PS team; phpRiya is designed to act as a wrapper for Riya 's API. Methods process the response XML and return a friendly array of data to make development simple and intuitive.
Here are some key features of "phpRiya":
LGPL license; you can use it for your commercial projects too!
Covers 95% of Riya API
Built-in DB/FS Caching
Fully extensible via the "call" method
EXAMPLE
< ?php
require_once("phpRiya.php");
$r = new phpRiya("< api key >"); // http://riya.com/applyAPI
// optional - authentication
// required only in Authentication Required functions
// see Riya API
//
// $r->auth("< username >","< password >");
// make a search in public photos
// look for ones tagged with 2006
$photos = $r->photos_search_searchPublic(null,null,null,null,null,null,"2006");
foreach ($photos as $photo) {
echo "< img src="{$photo['thumbnail']}" border="1" alt="" />";
}
?>
phpRiya 0.9 Beta search tags