gitipasand / iranprovince
List of all provinces with cities in Iran
dev-master
2019-03-02 16:43 UTC
Requires
- php: ^5.3|^7.0
This package is auto-updated.
Last update: 2025-07-29 01:43:30 UTC
README
A laravel package for IRAN Provinces and Cities.
installation
1.Run the command below to install via Composer
composer require gitipasand/iranprovince
2.Open your config/app.php and add the following to the providers array:
Gitipasand\IranProvinceInfo\IranProvinceServiceProvider::class,
3.Open your config/app.php and add the following to the aliases array:
'IranProvinceInfo'=>Gitipasand\IranProvinceInfo\IranProvinceInfo::class
4.run Command
php artisan vendor:publish
usage
use IranProvinceInfo;
$province = new IranProvinceInfo();
$province->getProvinces() // get All Provinces
$province->getCities() // get All Cities
$province->getProvinceCities($province_id); // get cities for province
License
All contents of this package are licensed under the MIT license