PHP URL Shortener with REST API