PHPTracker is a library suitable to create Bittorrent files of local files, manage peer announcements and provoding initial seed.
For examples see http://php-tracker.org/
The HEAD contains major refactor of the library which has many BC breakign changes. The current documentation refers to the latest tagged stable version (v0.3). Please keep using it before 0.4 stable is released.