承接 mohammad-prb/provinces-and-cities-composer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mohammad-prb/provinces-and-cities-composer

最新稳定版本:v4.0.1

Composer 安装命令:

composer require mohammad-prb/provinces-and-cities-composer

包简介

List of provinces and cities of countries

README 文档

README

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.

Install

composer require mohammad-prb/provinces-and-cities-composer

How to Use

<?php

use ProvincesAndCities\Iran;

Iran::MAIN    // all provinces and main cities
Iran::ALL     // all provinces and all cities

Examlpe of data

Iran::MAIN[7] = [
    "id" => 8,
    "name" => "تهران",
    "tel_prefix" => "021",
    "cities" => [
        "اسلامشهر",
        "بومهن",
        "پاكدشت",
        "تهران",
        "چهاردانگه",
        "دماوند",
        "رودهن",
        "ري",
        "شريف آباد",
        "شهر رباط كريم",
        "شهر شهريار",
        "فشم",
        "فيروزكوه",
        "قدس",
        "كهريزك",
        "لواسان بزرگ",
        "ملارد",
        "ورامين"
    ]
]

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!

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-02