As proposed by 'mate' on IRC. This simple code hopefully also demonstrates a good general starting point to future PHP scripts running from the command-line within DAViCal.