Port of LanternNotes to PHP