Sinatra clone in PHP