Just made a proposal to a Zend_Bittorrent component that can be used for decoding bittorrent encoded data (such as .torrent files) and encode encodable PHP variables into their bittorrent counterparts.
The proposal can be found at http://framework.zend.com/wiki/display/ZFPROP/Zend_Bittorrent+-+Christer+Edvartsen -- mvh Christer Edvartsen