https://github.com/mohammad-prb/provinces-and-cities-composer
Package of countries provinces and cities (Composer)
https://github.com/mohammad-prb/provinces-and-cities-composer
cities city composer germany iran package php provinces
Last synced: 6 months ago
JSON representation
Package of countries provinces and cities (Composer)
- Host: GitHub
- URL: https://github.com/mohammad-prb/provinces-and-cities-composer
- Owner: mohammad-prb
- License: mit
- Created: 2025-01-02T18:57:06.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-01-20T18:03:03.000Z (9 months ago)
- Last Synced: 2025-03-29T22:04:45.350Z (7 months ago)
- Topics: cities, city, composer, germany, iran, package, php, provinces
- Language: PHP
- Homepage: https://packagist.org/packages/mohammad-prb/provinces-and-cities-composer
- Size: 23.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Countries Provinces and Cities
This project provides data for provinces/states and cities of various countries. Currently, the following countries are included:
- **Iran**: Detailed list of provinces and cities.
- **Germany**: Comprehensive list of federal states (Bundesländer) and their cities.If you use languages other than PHP and need these lists, you can access the **JSON** and **MySQL** Information through this [repository](https://github.com/mohammad-prb/provinces-and-cities).
## Install
```
composer require mohammad-prb/provinces-and-cities-composer
```## How to Use
```php
8,
"name" => "تهران",
"tel_prefix" => "021",
"cities" => array(
"اسلامشهر",
"بومهن",
"پاكدشت",
"تهران",
"چهاردانگه",
"دماوند",
"رودهن",
"ري",
"شريف آباد",
"شهر رباط كريم",
"شهر شهريار",
"فشم",
"فيروزكوه",
"قدس",
"كهريزك",
"لواسان بزرگ",
"ملارد",
"ورامين"
)
)
```## Future Plans
The project is designed to be scalable, and we plan to add data for other countries in the future. If you have suggestions for specific countries, feel free to contribute or create an issue.## Contributions
We welcome contributions to expand this project. If you'd like to add data for a new country or improve existing data, please create a pull request.## Support
If this project was helpful, please consider giving it a **star**. Your support helps us grow!