hKit Microformats Toolkit for PHP5

hKit is a simple toolkit for extracting common microformats from a page. The page can be presented as a string or a URL, and the result is handed back as a standard PHP array structure. hKit uses SimpleXML for parsing, and therefore requires PHP5.

hKit has a modular structure, with a simple ‘profile’ for each microformat it supports. As the project is very young (June 2006), the only module currently supported is hCard. You can download the latest version on the right. Let me know if you use it somewhere.

In use

<?php 
    include('hkit.class.php');
    $hKit = new hKit;
    $result = $hKit->getByURL('hcard', 'http://microformats.org/');
    print_r($result);
?>

Updates

7 January 2008 - hKit now on Google Code

I’ve given hKit a new home over on Google Code. Now that the source is in a publicly visible subversion repository, it’s a lot easier to get the very latest version, submit a patch or otherwise contribute.

There’s also a wiki, where I’ve added a list of known issues, notes on what’s new in svn since the last fully tested release, and of course a road map.

Visit hkit.googlecode.com

Comments

Download Latest Version

The latest version can be downloaded from Google Code.

Stay Up-to-date

I publish hKit update feeds in RSS and Atom formats.

Licence

hKit is licensed under a LGPL 2.1 license.