PHP code example of denason / iran-location
1. Go to this page and download the library: Download denason/iran-location 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/ */
denason / iran-location example snippets
use Denason\IranLocation\Facades\IranLocation;
$provinces = IranLocation::getProvinces();
$provinces = iranLocation()->getProvinces();
$cities = iranLocation()->getCitiesByProvinceId(1);
bash
php artisan iran-location:install