PHP temporal frequency library