TechBrew

Informative geekery on software and technology

TechBrew Popstats: PHP tools for popularity ranking

August 17th, 2007 by Mark Woodman

Popstats is a just-released open-source set of PHP 5 classes that allow you to easily query one of several popularity APIs with a given URL. This code originally lived in the Power 150 (now hosted at AdAge.)

These tools can help you programmatically grab ranking and popularity information for your (or anybody else’s) website.

The initial classes offered are as follows:

cacher.class.php Caching utility class which allows you to cache the results of a GET. This helps you avoid spam-requesting services like the Technorati API.
bloglines.class.php Gets the Bloglines subscribers for one or more URLs. (Requires cacher.class.php)
google_pagerank.class.php Gets the Google PageRank for a URL. (Requires cacher.class.php)
technorati.class.php Gets the Technorati rank for a URL. (Requires cacher.class.php)

The intended audience for these tools are PHP programmers and integrators; these are not intended for use by an end-user or non-programmer.

You are highly encouraged to contribute to popstats by submitting improvements or bugfixes that have general benefit to the tools. The code will probably also need a wiki page per class to discuss usage and that sort of thing - we would be happy to see that kind of documentation spring up.

Trackback URI | Tags: How-To · Open-Source Spotlight

2 responses so far ↓

Leave a Comment