IASCO.de is a project mainly written in PHP, it's free.
fspeirs
International Apple Store Codes. If you have any updates, feel free to fork the repo and send me a pull request. Check that you haven't conflicted with any other code and try to avoid using the codes of the major airports.