1. Go to this page and download the library: Download enmaboya/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/ */
enmaboya / country-select example snippets
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->only(['US', 'RU'])
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->except(['BY', 'CN'])
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->onlyContinents(['EU', 'AS'])
use Enmaboya\CountrySelect\CountrySelect;
CountrySelect::make('Country', 'county_code')->exceptContinents(['SA', 'NA', 'OC'])
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.