public function getProvider($url = null, $assoc = true) { $content = file_get_contents($url); return json_decode($content, $assoc); }