Functional library for Legacy PHP