code: public static function stdin($raw = false)
      {
          return $raw ? fgets(\STDIN) : rtrim(fgets(\STDIN), PHP_EOL);
      }
docs: Gets input from STDIN and returns a string right-trimmed for EOLs.
  
  @param bool $raw If set to true, returns the raw string without trimming
  @return string the string read from stdin