src/Popolo.php
public static function fromUrl($url)
    {
        $client = new GuzzleHttp\Client();
        $response = $client->get($url);
        $jsonData = json_decode($response->getBody(), true);
        $instance = new self($jsonData);
        return $instance;
    }
public static function fromUrl($url)
    {
        $client = new GuzzleHttp\Client();
        $response = $client->get($url);
        $jsonData = json_decode($response->getBody(), true);
        $instance = new self($jsonData);
        return $instance;
    }
public static function fromUrl ( $ url ) { $ client = new GuzzleHttp \ Client ( ) ; $ response = $ client -> get ( $ url ) ; $ jsonData = json_decode ( $ response -> getBody ( ) , true ) ; $ instance = new self ( $ jsonData ) ; return $ instance ; }
Construct from URL

@param string $url location of Popolo json file

@return $this
Construct from URL