PHP code example of polderknowledge / zend-form-country-select
1. Go to this page and download the library: Download polderknowledge/zend-form-country-select 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/ */
polderknowledge / zend-form-country-select example snippets
$this->add([
'type' => CountrySelect::class,
'name' => 'country',
'options' => [
// optional countries to display first in the dropdown above a separator
'top_country_codes' => ['NL', 'ES'],
],
]);