PHP code example of snowiow / cocurl

1. Go to this page and download the library: Download snowiow/cocurl library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

snowiow / cocurl example snippets


$client = COCUrl\Client('my-api-key');

$client = COCUrl\Client('my-api-key');
$locations = $client->locations();

$locations[0]->name; 

$location = $client->locations(32000094); //Returns a Location object of Germany
echo $location->name; //Would print Germany