feat(php): api check final URL with redirect follow