code: private static function urlParameter($url)
      {
          $start = strpos($url, '{') + 1;
  
          $length = strpos($url, '}') - $start;
  
          return substr($url, $start, $length);
      }
docs: Url parameter.
  
  @param string $url
  
  @return string