Package version of php functional