PHP code example of suchmaske / emarsys-countries
1. Go to this page and download the library: Download suchmaske/emarsys-countries 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/ */
suchmaske / emarsys-countries example snippets
use Suchmaske\EmarsysCountries\EmarsysCountryHelper;
...
EmarsysCountryHelper::getCountryIdByIsoCode2('DE'); // returns 65
EmarsysCountryHelper::getCountryIdByIsoCode3('DEU'); // returns 65
EmarsysCountryHelper::getCountryIdByNumericIsoCode(276); // returns 65