Use a flat library of functions instead of classes as DirectPHP cannot
evaluate class instances