Basically you create a script, and you can create it as a module. Your app has to hit that module (or a cron or something if you’re reading a feed), where that code gets run.
You need to call one of the ACARSData functions, to file a PIREP or update an actual flight status. To do that, you fill in a data structure and pass it to it. For example, kACARS is updating a status of a flight:
class Module extends CodonModule {
public function retreive() {
// your XML parsing code in here,
$cws = new CodonWebService();
$xml = simplexml_load_string($cws->get ('URL to your XML'));
// continue
}
}
And you can do all your parsing, etc there as if it’s a regular ACARS module