Here you’ll find a little PHP API that wraps the single file metadata extraction feature of Bitzi’s bitcollider tool. Bitcollider also can submit file metadata to Bitzi. This PHP API doesn’t provide access to the submission feature.
Other possibly useful code provided with Bitcollider-PHP:
function hex_to_base_32($hex)converts hexidecimal input to Base32.
function magnetlink($sha1, $filename, $fileurl, $treetiger, $kzhash)returns a MAGNET link for the provided input.
magnetlink.php [file ...]is a command line utility that outputs MAGNET links for the files specified, using the bitcollider if available (if not kzhash and tree:tiger are not included in MAGNET links).