PHP code example of alzpk / restcountries-eu-api
1. Go to this page and download the library: Download alzpk/restcountries-eu-api 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/ */
alzpk / restcountries-eu-api example snippets
$client = new \Alzpk\RestCountriesEuAPI\RestCountriesClient();
// Fetch all countries
$countries = $client->all();
// Fetch countries by searching names
$countries = $client->name('Denmark');
json
{
"php": "^7.4",
"guzzlehttp/guzzle": "7.4.2",
"ext-json": "*"
}