How can I read the contents of stdin (up until EOF) into a string in PHP? June 1, 2023 by Tarik ended up figuring it out myself: $input_data = file_get_contents("php://stdin");