Moodle integration using the PHP automation client