Ci-FlightStats is a php and CodeIgniter (3.x) library to use the FlightStats API.
Just copy the files from this package to the corresponding folder in your application folder. For example, copy ci-flightstats/config/flightstats.php to application/config/flightstats.php.
In the package you will find simple example usage code in the controllers folders.
The tests use the kenjis/ci-phpunit-test module.