The php-downloader has a simple architecture. All you has to do is to set the file param and the method, you´d like to offer as download (plain, zip, tar.gz) and the php-downloader offers you a download.
Documentation for the current version at www.ipunkt.biz