gitipasand/iranprovince

List of all provinces with cities in Iran

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

pkg:composer/gitipasand/iranprovince

dev-master 2019-03-02 16:43 UTC

This package is auto-updated.

Last update: 2025-10-29 02:09:39 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