<?php
$url = "https://mysite.ru/good.xhtml#param1=test¶m2=test1";
$url = str_replace("#", "?", $url);
$query = parse_url($url, PHP_URL_QUERY);
$params = [];
parse_str($query, $params);
var_dump($params);
array(2) {
'param1' =>
string(4) "test"
'param2' =>
string(5) "test1"
}