code: public function getRequestPath()
      {
          $requestPath = '';
          $server = $this->getGlobalServer();
          if (array_key_exists('REQUEST_URI', $server)) {
              $requestPath = parse_url($server['REQUEST_URI'], PHP_URL_PATH);
          }
  
          return $requestPath;
      }
docs: Returns request path based on REQUEST_URI
  
  @return mixed|string