Updated PHP StreamClient class for AtTask based on the example provided by AtTask.