PHP code example of epmnzava / location-demografia
1. Go to this page and download the library: Download epmnzava/location-demografia 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/ */
epmnzava / location-demografia example snippets
bash
php artisan locationdemografia:install
bash
php artisan locationdemografia:install --loadonly
php
use Epmnzava\LocationDemografia;
class TestController extends Controller{
public function test(){
$location= new LocationDemografia;
//get all countries
$countries=$location->getCountries();
//get all countries states
$states=$location->getCountriesState($countryid);
//search countries
$country=$location->search_country($countryname);
}
}