phpfina to phptimeseries engine conversion