Set required PHP version to 5.4

Update required PHP version to 5.4 because the fourth parameter in http_build_query is not available in previous PHP versions.